Fqdn.TryParse method
Converts the string representation of a fully qualified domain name (FQDN) to a Fqdn instance. A return value indicates whether the conversion succeeded or failed.
Namespace: Microsoft.Exchange.Data
Assembly: Microsoft.Exchange.Data (in Microsoft.Exchange.Data.dll)
Syntax
'Declaration
Public Shared Function TryParse ( _
fqdn As String, _
<OutAttribute> ByRef obj As Fqdn _
) As Boolean
'Usage
Dim fqdn As String
Dim obj As Fqdn
Dim returnValue As Boolean
returnValue = Fqdn.TryParse(fqdn, _
obj)
public static bool TryParse(
string fqdn,
out Fqdn obj
)
Parameters
fqdn
Type: System.StringAn FQDN.
obj
Type: Microsoft.Exchange.Data.FqdnWhen this method returns, contains an instance equivalent to the fqdn parameter.
Return value
Type: System.Boolean
true if the conversion succeeded; otherwise, false.