다음을 통해 공유


RoutingDomain.TryParse Method

The TryParse method converts the string representation of a Simple Mail Transfer Protocol (SMTP) domain to an equivalent instance of the RoutingDomain structure. This member was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).

Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Shared Function TryParse ( _
    domain As String, _
    <OutAttribute> ByRef obj As RoutingDomain _
) As Boolean
public static bool TryParse (
    string domain,
    out RoutingDomain obj
)
public:
static bool TryParse (
    String^ domain, 
    [OutAttribute] RoutingDomain% obj
)
public static boolean TryParse (
    String domain, 
    /** @attribute OutAttribute() */ /** @ref */ RoutingDomain obj
)
JScript does not support passing value-type arguments by reference.

Parameters

  • domain
    The SMTP domain to convert.
  • obj
    When this method returns, the parameter obj contains an instance of the RoutingDomain structure that represents the domain that is specified by the domain parameter. This parameter is passed uninitialized.

Return Value

The TryParse method returns a value of true if the specified domain is valid; otherwise, the method returns a value of false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003