Compartir a través de


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.