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
'Usage
Dim instance As EmailRecipientCollection
Dim recipient As EmailRecipient
Dim returnValue As Boolean
returnValue = instance.Remove(recipient)
public bool Remove(
EmailRecipient recipient
)
Parameters
recipient
Type: Microsoft.Exchange.Data.Transport.Email.EmailRecipientThe attachment to remove from the collection.
Return value
Type: System.Boolean
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.
See also
Reference
EmailRecipientCollection class