Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
name
Type: System.StringThe name of the character set for which a Encoding is desired.
Return value
Type: System.Text.Encoding
Exceptions
| Exception | Condition |
|---|---|
| InvalidCharsetException | The code page specified by the name parameter is invalid or is not installed. |