Charset members

The Charset class exposes information about a character set.

The Charset type exposes the following members.

Properties

  Name Description
Public propertyStatic member ASCII The ASCII property gets a Charset object representing the ASCII character set.
Public property CodePage The CodePage property gets the code page number for the character set that this Charset object represents.
Public property Culture The Culture property gets the read-only Culture object for this Charset object.
Public propertyStatic member DefaultMimeCharset The DefaultMimeCharset property gets the MIME character set that is used to represent text in the default culture.
Public propertyStatic member DefaultWebCharset The DefaultWebCharset property gets the Web character set that is used to represent text in the default culture.
Public propertyStatic member DefaultWindowsCharset The DefaultWindowsCharset property gets the windows character set that is used to represent text in the default culture.
Public property Description The Description property returns an English language description of the character set represented by this Charset object.
Public property IsAvailable The IsAvailable property gets a Boolean value that indicates whether the character set represented by this Charset object is installed and available for encoding and decoding.
Public property IsDetectable The IsDetectable property gets a Boolean value that indicates whether the character set represented by this Charset object can be detected by the OutboundCodePageDetector class.
Public property IsWindowsCharset The IsWindowsCharset property gets a Boolean value that indicates whether the character set represented by this Charset object is a Windows character set.
Public property Name The Name property returns the default name of the character set that is represented by this Charset object.
Public propertyStatic member Unicode The Unicode property gets a Charset object that represents the Unicode character set.
Public propertyStatic member UTF8 The UTF8 property gets a Charset object that represents the UTF-8 character set.

Top

Methods

  Name Description
Public methodStatic member GetCharset(Int32) The GetCharset method returns a read-only Charset object that represents the character set specified by the codePage parameter.
Public methodStatic member GetCharset(String) The GetCharset method returns a read-only Charset object that represents the character set specified by the name parameter.
Public methodStatic member GetCharset(Encoding) Returns an object that corresponds to the character set encoded using the associated encoding.
Public method GetEncoding() The GetEncoding method returns the Encoding for the character set that this Charset object represents.
Public methodStatic member GetEncoding(Int32) The GetEncoding method returns an Encoding object for the specified code page.
Public methodStatic member GetEncoding(String) The GetEncoding method returns an Encoding object for the specified character set name.
Public methodStatic member TryGetCharset(Int32, Charset) The TryGetCharset method attempts to put a Charset object into the charset out parameter that corresponds to the codePage parameter. TryGetCharset does not throw an exception if it fails.
Public methodStatic member TryGetCharset(String, Charset) The TryGetCharset method attempts to put a Charset object into the charset out parameter that corresponds to the name parameter. TryGetCharset does not throw an exception if it fails.
Public methodStatic member TryGetCharset(Encoding, Charset) Returns an object that corresponds to a character set as an out parameter that is encoded by the associated encoding and does not throw an exception if the character set can't be retrieved.
Public method TryGetEncoding(Encoding) The TryGetEncoding attempts to put the Encoding for the character set that this Charset object represents into the encoding out parameter. TryGetEncoding does not throw an exception if it fails.
Public methodStatic member TryGetEncoding(Int32, Encoding) The TryGetEncoding method attempts to put the Encoding object for the character set specified by the codePage parameter into the encoding out parameter.
Public methodStatic member TryGetEncoding(String, Encoding) The TryGetEncoding method attempts to get a Encoding object for the character set specified by the name parameter.

Top

See also

Reference

Charset class

Microsoft.Exchange.Data.Globalization namespace