Charset.TryGetEncoding Method (out 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
public bool TryGetEncoding (
out Encoding encoding
)
public:
bool TryGetEncoding (
[OutAttribute] Encoding^% encoding
)
public boolean TryGetEncoding (
/** @attribute OutAttribute() */ /** @ref */ Encoding encoding
)
JScript does not support passing value-type arguments by reference.
Parameters
- encoding
A Encoding object in which to store the result.
Return Value
The TryGetEncoding method returns true if it is successful. Otherwise, it returns false.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003