Compartir a través de


ISmsMessage::GetAttachmentByIndex 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::GetAttachmentByIndex method, in Configuration Manager, gets a message attachment by index.

[IDL]
HRESULT GetAttachmentByIndex(
      ULONG ulIdx,
      ISmsMessageAttachment** ppAttach
);

Parameters

  • ulIdx
    Data type: ULONG

    Qualifiers: [in]

    Zero-based index of 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

Concepts

ISmsMessage Interface
ISmsMessageAttachment Interface