Charset.TryGetCharset method (String, Charset)
The TryGetCharset method attempts to put a Charset object into the charset out parameter that corresponds to the name parameter. TryGetCharset does not throw an exception if it fails.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Shared Function TryGetCharset ( _
name As String, _
<OutAttribute> ByRef charset As Charset _
) As Boolean
'Usage
Dim name As String
Dim charset As Charset
Dim returnValue As Boolean
returnValue = Charset.TryGetCharset(name, _
charset)
public static bool TryGetCharset(
string name,
out Charset charset
)
Parameters
name
Type: System.StringThe character set name for which to obtain a Charset object.
charset
Type: Microsoft.Exchange.Data.Globalization.CharsetA Charset in which to store the result.
Return value
Type: System.Boolean
The TryGetCharset method returns true if it is successful. Otherwise, it returns false.