Share via


AddressBook.Contains method

When overridden in a derived class, the Contains method indicates whether the address book contains the specified address.

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

Syntax

'Declaration
Public MustOverride Function Contains ( _
    smtpAddress As RoutingAddress _
) As Boolean
'Usage
Dim instance As AddressBook
Dim smtpAddress As RoutingAddress
Dim returnValue As Boolean

returnValue = instance.Contains(smtpAddress)
public abstract bool Contains(
    RoutingAddress smtpAddress
)

Parameters

Return value

Type: System.Boolean
The Contains method returns true if the address book contains the address specified by the smtpAddress parameter; otherwise, the method returns false.

See also

Reference

AddressBook class

AddressBook members

Microsoft.Exchange.Data.Transport namespace