Share via


AddressBook.Find method (RoutingAddress[])

When overridden in a derived class, the Find method finds addresses in the address book that are based on the addresses specified in the smtpAddresses parameter.

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

Syntax

'Declaration
Public MustOverride Function Find ( _
    ParamArray smtpAddresses As RoutingAddress() _
) As ReadOnlyCollection(Of AddressBookEntry)
'Usage
Dim instance As AddressBook
Dim smtpAddresses As RoutingAddress()
Dim returnValue As ReadOnlyCollection(Of AddressBookEntry)

returnValue = instance.Find(smtpAddresses)
public abstract ReadOnlyCollection<AddressBookEntry> Find(
    params RoutingAddress[] smtpAddresses
)

Parameters

  • smtpAddresses
    Type: []

    An instance of the RoutingAddress object that contains proxy addresses or primary addresses, or both.

Return value

Type: System.Collections.ObjectModel.ReadOnlyCollection<AddressBookEntry>
When overridden in a derived class, the Find method returns an array of AddressBookEntry objects.

Remarks

If an address is not in the address book, the corresponding entry in the returned array will be a null reference (Nothing in Visual Basic).

See also

Reference

AddressBook class

AddressBook members

Find overload

Microsoft.Exchange.Data.Transport namespace