Share via


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
'Usage
Dim name As String
Dim returnValue As Encoding

returnValue = Charset.GetEncoding(name)
public static Encoding GetEncoding(
    string name
)

Parameters

Return value

Type: System.Text.Encoding

Exceptions

Exception Condition
InvalidCharsetException

The code page specified by the name parameter is invalid or is not installed.

See also

Reference

Charset class

Charset members

GetEncoding overload

Microsoft.Exchange.Data.Globalization namespace