ISmsMessage::GetAttachmentCount Method
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
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.