Share via


Charset.TryGetEncoding method (Encoding)

The TryGetEncoding attempts to put the Encoding for the character set that this Charset object represents into the encoding out parameter. TryGetEncoding 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 Function TryGetEncoding ( _
    <OutAttribute> ByRef encoding As Encoding _
) As Boolean
'Usage
Dim instance As Charset
Dim encoding As Encoding
Dim returnValue As Boolean

returnValue = instance.TryGetEncoding(encoding)
public bool TryGetEncoding(
    out Encoding encoding
)

Parameters

Return value

Type: System.Boolean
The TryGetEncoding method returns true if it is successful. Otherwise, it returns false.

See also

Reference

Charset class

Charset members

TryGetEncoding overload

Microsoft.Exchange.Data.Globalization namespace