Fqdn.TryParse Method
Converts the string representation of a fully-qualified domain name 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.String
A fully-qualified domain name.
- obj
Type: Microsoft.Exchange.Data.Fqdn
When this method returns, contains a Fqdn instance equivalent to the fqdn parameter.
Return Value
Type: System.Boolean
true if the conversion succeeded; otherwise, false.