RoutingDomain Constructor (String, String)

The RoutingDomain(String, String) constructor initializes a new instance of the RoutingDomain class to the specified domain and type.

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

Syntax

'Declaration
Public Sub New ( _
    domain As String, _
    type As String _
)
'Usage
Dim domain As String
Dim type As String

Dim instance As New RoutingDomain(domain, _
    type)
public RoutingDomain(
    string domain,
    string type
)

Parameters

  • type
    Type: System.String
    The string representation of the domain type such as "Smtp".

Exceptions

Exception Condition
[FormatException]

Thrown if the domain is invalid, if the domain is null or empty, if the type parameter is null or empty, or if the type parameter contains invalid characters.