다음을 통해 공유


AttachmentCollection.Remove Method

The Remove method removes an element from the collection based on the Attachment object specified by the attachment parameter.

Namespace: Microsoft.Exchange.Data.Transport.Email
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Function Remove ( _
    attachment As Attachment _
) As Boolean
public bool Remove (
    Attachment attachment
)
public:
bool Remove (
    Attachment^ attachment
)
public boolean Remove (
    Attachment attachment
)
public function Remove (
    attachment : Attachment
) : boolean

Parameters

  • attachment
    The attachment to remove from the collection.

Return Value

The Remove method returns true if the Attachment object specified by the attachment parameter existed in the collection and the method successfully removed the attachment from the collection; otherwise, the method returns false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003