Partilhar via


EmailRecipientCollection.Remove Method

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

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

Syntax

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

Parameters

  • recipient
    The attachment to remove from the collection.

Return Value

The Remove method returns true if the EmailRecipient object specified by the recipient parameter existed in the collection and the method successfully removed the recipient 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