Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform.
More...
Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform.
Definition at line 8 of file EncodingProvider.cs.
◆ EncodingProvider()
System.Text.EncodingProvider.EncodingProvider |
( |
| ) |
|
Initializes a new instance of the T:System.Text.EncodingProvider class.
Definition at line 16 of file EncodingProvider.cs.
◆ GetEncoding() [1/4]
abstract Encoding System.Text.EncodingProvider.GetEncoding |
( |
string |
name | ) |
|
|
pure virtual |
Returns the encoding with the specified name.
- Parameters
-
name | The name of the requested encoding. |
- Returns
- The encoding that is associated with the specified name, or
null
if this T:System.Text.EncodingProvider cannot return a valid encoding that corresponds to name .
◆ GetEncoding() [2/4]
abstract Encoding System.Text.EncodingProvider.GetEncoding |
( |
int |
codepage | ) |
|
|
pure virtual |
Returns the encoding associated with the specified code page identifier.
- Parameters
-
codepage | The code page identifier of the requested encoding. |
- Returns
- The encoding that is associated with the specified code page, or
null
if this T:System.Text.EncodingProvider cannot return a valid encoding that corresponds to codepage .
◆ GetEncoding() [3/4]
Returns the encoding associated with the specified name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.
- Parameters
-
name | The name of the preferred encoding. |
encoderFallback | An object that provides an error-handling procedure when a character cannot be encoded with this encoding. |
decoderFallback | An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding. |
- Returns
- The encoding that is associated with the specified name, or
null
if this T:System.Text.EncodingProvider cannot return a valid encoding that corresponds to name .
Definition at line 38 of file EncodingProvider.cs.
◆ GetEncoding() [4/4]
Returns the encoding associated with the specified code page identifier. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.
- Parameters
-
codepage | The code page identifier of the requested encoding. |
encoderFallback | An object that provides an error-handling procedure when a character cannot be encoded with this encoding. |
decoderFallback | An object that provides an error-handling procedure when a byte sequence cannot be decoded with this encoding. |
- Returns
- The encoding that is associated with the specified code page, or
null
if this T:System.Text.EncodingProvider cannot return a valid encoding that corresponds to codepage .
Definition at line 56 of file EncodingProvider.cs.
The documentation for this class was generated from the following file: