Charset.TryGetCharset method (Encoding, Charset)
Returns an object that corresponds to a character set as an out parameter that is encoded by the associated encoding and does not throw an exception if the character set can't be retrieved.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Shared Function TryGetCharset ( _
encoding As Encoding, _
<OutAttribute> ByRef charset As Charset _
) As Boolean
'Usage
Dim encoding As Encoding
Dim charset As Charset
Dim returnValue As Boolean
returnValue = Charset.TryGetCharset(encoding, _
charset)
public static bool TryGetCharset(
Encoding encoding,
out Charset charset
)
Parameters
encoding
Type: System.Text.EncodingThe encoding of the specified character set.
charset
Type: Microsoft.Exchange.Data.Globalization.CharsetThe character set to retrieve.
Return value
Type: System.Boolean
true if the character set could be retrieved; otherwise, false.