Share via


Charset.TryGetCharset method

The TryGetCharset method overloads try to get a specified Charset object but do not throw exceptions if the Charset object cannot be obtained.

Overload list

  Name Description
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.

Top

See also

Reference

Charset class

Charset members

Microsoft.Exchange.Data.Globalization namespace