Share via


AddressBookEntry.IsSafeRecipient Method

When overridden in a derived class, the IsSafeRecipient method gets a value that indicates whether messages from the recipient that is represented by this instance of the AddressBookEntry class to the recipient that is specified by the recipientAddress parameter should bypass anti-spam tests.

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

Syntax

'Declaration
Public MustOverride Function IsSafeRecipient ( _
    recipientAddress As RoutingAddress _
) As Boolean
'Usage
Dim instance As AddressBookEntry
Dim recipientAddress As RoutingAddress
Dim returnValue As Boolean

returnValue = instance.IsSafeRecipient(recipientAddress)
public abstract bool IsSafeRecipient(
    RoutingAddress recipientAddress
)

Parameters

Return Value

Type: System.Boolean
The IsSafeRecipient method returns true if the address for the recipient that is specified by the recipientAddress parameter is in the list of trusted recipients for the recipient that is represented by this instance of the AddressBookEntry class or if the domain for the recipient that is specified by the recipientAddress parameter is in the list of trusted domains for the recipient that is specified by this instance of the AddressBookEntry class; otherwise, the method returns false.