Charset.TryGetEncoding Method
The TryGetEncoding method overloads try to get a specified Encoding object but do not throw exceptions if the Encoding object cannot be obtained.
Overload List
Name | Description |
---|---|
Charset.TryGetEncoding (out 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.
|
Charset.TryGetEncoding (Int32, out Encoding) |
The TryGetEncoding method attempts to put the Encoding object for the character set specified by the codePage parameter into the encoding out parameter.
|
Charset.TryGetEncoding (String, out Encoding) |
The TryGetEncoding method attempts to get a Encoding object for the character set specified by the name parameter.
|