AddressBookEntry.IsSafeSender method
When overridden in a derived class, the IsSafeSender method returns a value that indicates whether a message to the recipient that is specified by the senderAddress parameter to the recipient that is represented by this instance of the AddressBookEntry class 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 IsSafeSender ( _
senderAddress As RoutingAddress _
) As Boolean
'Usage
Dim instance As AddressBookEntry
Dim senderAddress As RoutingAddress
Dim returnValue As Boolean
returnValue = instance.IsSafeSender(senderAddress)
public abstract bool IsSafeSender(
RoutingAddress senderAddress
)
Parameters
senderAddress
Type: Microsoft.Exchange.Data.Transport.RoutingAddressAn instance of the RoutingAddress class that represents the sender to check for anti-spam bypass for messages to the recipient that is represented by this instance of the AddressBookEntry class.
Return value
Type: System.Boolean
The IsSafeSender method returns true if the address for the sender that is specified by the senderAddress parameter is in the list of trusted senders for the recipient that is represented by this instance of the AddressBookEntry class or if the domain for the sender that is specified by the senderAddress 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.