The ISmsMessage::GetAttachmentByName method, in Configuration Manager, gets a message attachment by name.
[IDL] HRESULT GetAttachmentByName( LPCWSTR szName, ISmsMessageAttachment** ppAttach ); |
Parameters
- szName
- Data type: LPCWSTRQualifiers: [in]Null-terminated string specifying the name 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.
Remarks
Your application uses this method to get an attachment if its name is known in advance. It first calls ISmsMessage::GetAttachmentCount Method and ISmsMessage::GetAttachmentByIndex Method to enumerate all attachments.
See Also
Send comments about this topic to Microsoft.