Partager via


AcceptedDomainCollection.Find Method (String)

When overridden in a derived class, the Find method finds in the collection the instance of the class derived from the AcceptedDomain class that represents the domain specified by the domainName parameter.

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

Syntax

'Declaration
Public MustOverride Function Find ( _
    domainName As String _
) As AcceptedDomain
'Usage
Dim instance As AcceptedDomainCollection
Dim domainName As String
Dim returnValue As AcceptedDomain

returnValue = instance.Find(domainName)
public abstract AcceptedDomain Find(
    string domainName
)

Parameters

  • domainName
    Type: System.String
    A string value that contains the domain or domain part to find.

Return Value

Type: Microsoft.Exchange.Data.Transport.AcceptedDomain
When overridden in a derived class, the collection contains an instance of the AcceptedDomain class that represents the domain specified by the domainName parameter and the Find method returns that instance of the class derived from the AcceptedDomain class; otherwise, the method returns a null reference (Nothing in Visual Basic).