The ISmsMessage::GetAttachmentByIndex method, in Configuration Manager, gets a message attachment by index.
[IDL] HRESULT GetAttachmentByIndex( ULONG ulIdx, ISmsMessageAttachment** ppAttach ); |
Parameters
- ulIdx
- Data type: ULONGQualifiers: [in]Zero-based index of the attachment.
- ppAttach
- Data type: ISmsMessageAttachmentQualifiers: [out]Pointer to an ISmsMessageAttachment Interface object representing the attachment.
Return Value
An HRESULT code. Possible values include but are not limited to the following:
- S_OK
- The method succeeded.
- SMS_ERR_INDEX_OUT_OF_RANGE
- The specified index is out of range.
Remarks
Your application should use ISmsMessage::GetAttachmentCount Method to get the count of attachments. Then it can call GetAttachmentByIndex to iterate through the attachments one by one.
See Also
Send comments about this topic to Microsoft.