The ISmsMessage::GetAttachmentCount method, in Configuration Manager, gets the count of attachments on the message.

[IDL]
HRESULT GetAttachmentCount(
	ULONG*  pulCount
);

Parameters

pulCount


Data type: ULONGQualifiers: [out]Pointer to the count of attachments on the message. Each attachment is represented by an ISmsMessageAttachment Interface object.

Return Value

An HRESULT code. Possible values include, but are not limited to, those in the following:

S_OK


The method succeeded.

Remarks

Your application uses this method when enumerating message attachments. A call to this method is frequently followed by a call to ISmsMessage::GetAttachmentByIndex Method to enumerate the attachments one by one.

See Also


Send comments about this topic to Microsoft.