Charset.TryGetEncoding Method (Int32, out Encoding)
The TryGetEncoding method attempts to put the Encoding object for the character set specified by the codePage parameter into the encoding out parameter.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)
Syntax
'Declaration
Public Shared Function TryGetEncoding ( _
codePage As Integer, _
<OutAttribute> ByRef encoding As Encoding _
) As Boolean
public static bool TryGetEncoding (
int codePage,
out Encoding encoding
)
public:
static bool TryGetEncoding (
int codePage,
[OutAttribute] Encoding^% encoding
)
public static boolean TryGetEncoding (
int codePage,
/** @attribute OutAttribute() */ /** @ref */ Encoding encoding
)
JScript does not support passing value-type arguments by reference.
Parameters
- codePage
The code page for which to obtain an Encoding.
- 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