AddressBook.Find method (RoutingAddress)
When overridden in a derived class, the Find method finds an address in the address book based on the address specified in the smtpAddress parameter.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function Find ( _
smtpAddress As RoutingAddress _
) As AddressBookEntry
'Usage
Dim instance As AddressBook
Dim smtpAddress As RoutingAddress
Dim returnValue As AddressBookEntry
returnValue = instance.Find(smtpAddress)
public abstract AddressBookEntry Find(
RoutingAddress smtpAddress
)
Parameters
smtpAddress
Type: Microsoft.Exchange.Data.Transport.RoutingAddressAn instance of the RoutingAddress object that contains a proxy or primary address.
Return value
Type: Microsoft.Exchange.Data.Transport.AddressBookEntry
When overridden in a derived class, the Find method returns an instance of the AddressBookEntry object that represents the address found.
Remarks
If the address specified by the smtpAddress parameter is not in the address book, the Find method will return a a null reference (Nothing in Visual Basic) object.