mscorlib(4.0.0.0) API with additions
System.Text.EncodingProvider Class Referenceabstract

Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform. More...

Public Member Functions

 EncodingProvider ()
 Initializes a new instance of the T:System.Text.EncodingProvider class. More...
 
abstract Encoding GetEncoding (string name)
 Returns the encoding with the specified name. More...
 
abstract Encoding GetEncoding (int codepage)
 Returns the encoding associated with the specified code page identifier. More...
 
virtual Encoding GetEncoding (string name, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
 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. More...
 
virtual Encoding GetEncoding (int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
 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. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EncodingProvider()

System.Text.EncodingProvider.EncodingProvider ( )

Initializes a new instance of the T:System.Text.EncodingProvider class.

Definition at line 16 of file EncodingProvider.cs.

Member Function Documentation

◆ GetEncoding() [1/4]

abstract Encoding System.Text.EncodingProvider.GetEncoding ( string  name)
pure virtual

Returns the encoding with the specified name.

Parameters
nameThe 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
codepageThe 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]

virtual Encoding System.Text.EncodingProvider.GetEncoding ( string  name,
EncoderFallback  encoderFallback,
DecoderFallback  decoderFallback 
)
virtual

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
nameThe name of the preferred encoding.
encoderFallbackAn object that provides an error-handling procedure when a character cannot be encoded with this encoding.
decoderFallbackAn 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]

virtual Encoding System.Text.EncodingProvider.GetEncoding ( int  codepage,
EncoderFallback  encoderFallback,
DecoderFallback  decoderFallback 
)
virtual

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
codepageThe code page identifier of the requested encoding.
encoderFallbackAn object that provides an error-handling procedure when a character cannot be encoded with this encoding.
decoderFallbackAn 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: