EnvelopeRecipientCollection.Remove method (EnvelopeRecipient, DsnType, SmtpResponse, String)
When overridden in a derived class removes a recipient from the collection and creates a delivery status notification (DSN) report.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function Remove ( _
recipient As EnvelopeRecipient, _
dsnType As DsnType, _
smtpResponse As SmtpResponse, _
sourceContext As String _
) As Boolean
'Usage
Dim instance As EnvelopeRecipientCollection
Dim recipient As EnvelopeRecipient
Dim dsnType As DsnType
Dim smtpResponse As SmtpResponse
Dim sourceContext As String
Dim returnValue As Boolean
returnValue = instance.Remove(recipient, _
dsnType, smtpResponse, sourceContext)
public abstract bool Remove(
EnvelopeRecipient recipient,
DsnType dsnType,
SmtpResponse smtpResponse,
string sourceContext
)
Parameters
recipient
Type: Microsoft.Exchange.Data.Transport.EnvelopeRecipientThe recipient to remove.
dsnType
Type: Microsoft.Exchange.Data.Transport.DsnTypeThe DSN to generate for this recipient.
smtpResponse
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseThe SMTP response to use for this DSN. If NULL, then the default for the message will be applied.
sourceContext
Type: System.StringThe source context (Relay/Delay/Failed) for the delivery status notification (DSN).
Return value
Type: System.Boolean
true if the recipient existed in the collection and the recipient was successfully removed; otherwise, false.
See also
Reference
EnvelopeRecipientCollection class