Share via


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

  • sourceContext
    Type: System.String

    The 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

EnvelopeRecipientCollection members

Remove overload

Microsoft.Exchange.Data.Transport namespace