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