次の方法で共有


RoutingDomain.Parse Method

The Parse 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 Parse ( _
    domain As String _
) As RoutingDomain
public static RoutingDomain Parse (
    string domain
)
public:
static RoutingDomain Parse (
    String^ domain
)
public static RoutingDomain Parse (
    String domain
)
public static function Parse (
    domain : String
) : RoutingDomain

Parameters

  • domain
    The SMTP domain to convert.

Return Value

The Parse method returns an instance of the RoutingDomain structure that represents the specified SMTP domain if the specified domain is valid; otherwise, the method throws a System.FormatException exception.

Remarks

The TryParse method performs the same function as the Parse method, but does not throw an exception.

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