Поделиться через


RoutingAddress.IsValidAddress method

The IsValidAddress property gets a value that indicates whether the address specified by the address parameter is valid as a Simple Mail Transfer Protocol (SMTP) address.

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

Syntax

'Declaration
Public Shared Function IsValidAddress ( _
    address As String _
) As Boolean
'Usage
Dim address As String
Dim returnValue As Boolean

returnValue = RoutingAddress.IsValidAddress(address)
public static bool IsValidAddress(
    string address
)

Parameters

Return value

Type: System.Boolean
The IsValidAddress property returns a value of true if the data that is contained in the structure is valid as a Simple Mail Transfer Protocol (SMTP) address; otherwise, the property returns a value of false.

See also

Reference

RoutingAddress structure

RoutingAddress members

Microsoft.Exchange.Data.Transport namespace