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
- encoding
Type: System.Text.Encoding
A Encoding object in which to store the result.
Return Value
Type: System.Boolean
The TryGetEncoding method returns true if it is successful. Otherwise, it returns false.