Charset.GetEncoding Method (String)
The GetEncoding method returns an Encoding object for the specified character set name.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)
Syntax
'Declaration
Public Shared Function GetEncoding ( _
name As String _
) As Encoding
public static Encoding GetEncoding (
string name
)
public:
static Encoding^ GetEncoding (
String^ name
)
public static Encoding GetEncoding (
String name
)
public static function GetEncoding (
name : String
) : Encoding
Parameters
- name
The name of the character set for which a Encoding is desired.
Exceptions
Exception type | Condition |
---|---|
InvalidCharsetException | The code page specified by the name parameter is invalid or is not installed. |
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