Charset.GetEncoding Method (Int32)
The GetEncoding method returns an Encoding object for the specified code page.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)
Syntax
'Declaration
Public Shared Function GetEncoding ( _
codePage As Integer _
) As Encoding
public static Encoding GetEncoding (
int codePage
)
public:
static Encoding^ GetEncoding (
int codePage
)
public static Encoding GetEncoding (
int codePage
)
public static function GetEncoding (
codePage : int
) : Encoding
Parameters
- codePage
The code page for which an encoding is desired.
Exceptions
Exception type | Condition |
---|---|
InvalidCharsetException | The code page specified by the codePage 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