Share via


ReceiveMessageEventSource.Quarantine method

When overridden in a derived class, the Quarantine method quarantines the received message for the recipients specified by the recipients parameter by using the reason specified by the quarantineReason parameter.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride Sub Quarantine ( _
    recipients As IEnumerable(Of EnvelopeRecipient), _
    quarantineReason As String _
)
'Usage
Dim instance As ReceiveMessageEventSource
Dim recipients As IEnumerable(Of EnvelopeRecipient)
Dim quarantineReason As String

instance.Quarantine(recipients, quarantineReason)
public abstract void Quarantine(
    IEnumerable<EnvelopeRecipient> recipients,
    string quarantineReason
)

Parameters

  • quarantineReason
    Type: System.String

    The value to put in the quarantine Delivery Status Notification (DSN) with each quarantined recipient for diagnostic purposes.

See also

Reference

ReceiveMessageEventSource class

ReceiveMessageEventSource members

Microsoft.Exchange.Data.Transport.Smtp namespace