System.Text.Encoding
Converts a sequence of encoded bytes into a set of characters.
1
Initializes a new instance of the class.
Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a character array.
A byte array to convert.
The first element of to convert.
The number of elements of to convert.
An array to store the converted characters.
The first element of in which data is stored.
The maximum number of elements of to use in the conversion.
true to indicate that no further data is to be converted; otherwise, false.
When this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized.
When this method returns, contains the number of characters from that were produced by the conversion. This parameter is passed uninitialized.
When this method returns, contains true if all the characters specified by were converted; otherwise, false. This parameter is passed uninitialized.
or is null (Nothing).
, , , or is less than zero.-or-The length of - is less than .-or-The length of - is less than .
The output buffer is too small to contain any of the converted input. The output buffer should be greater than or equal to the size indicated by the method.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
Gets or sets a object for the current object.
A object.
The value in a set operation is null (Nothing).
A new value cannot be assigned in a set operation because the current object contains data that has not been decoded yet.
1
Gets the object associated with the current object.
A object.
1
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
is null (Nothing).
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. A parameter indicates whether to clear the internal state of the decoder after the calculation.
The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
true to simulate clearing the internal state of the encoder after the calculation; otherwise, false.
is null (Nothing).
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array.
The actual number of characters written into .
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The character array to contain the resulting set of characters.
The index at which to start writing the resulting set of characters.
is null (Nothing).-or- is null (Nothing).
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting characters.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. A parameter indicates whether to clear the internal state of the decoder after the conversion.
The actual number of characters written into the parameter.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The character array to contain the resulting set of characters.
The index at which to start writing the resulting set of characters.
true to clear the internal state of the decoder after the conversion; otherwise, false.
is null (Nothing).-or- is null (Nothing).
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting characters.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, sets the decoder back to its initial state.
2
Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an input character. The fallback throws an exception instead of decoding the input byte sequence. This class cannot be inherited.
2
Initializes a new instance of the class.
Returns a decoder fallback buffer that throws an exception if it cannot convert a sequence of bytes to a character.
A decoder fallback buffer that throws an exception when it cannot decode a byte sequence.
2
Indicates whether the current object and a specified object are equal.
true if is not null and is a object; otherwise, false.
An object that derives from the class.
2
Retrieves the hash code for this instance.
The return value is always the same arbitrary value, and has no special significance.
2
Gets the maximum number of characters this instance can return.
The return value is always zero.
2
Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character.
2
Initializes a new instance of the class.
When overridden in a derived class, initializes a new instance of the class.
An object that provides a fallback buffer for a decoder.
2
Gets an object that throws an exception when an input byte sequence cannot be decoded.
A type derived from the class. The default value is a object.
1
When overridden in a derived class, gets the maximum number of characters the current object can return.
The maximum number of characters the current object can return.
2
Gets an object that outputs a substitute string in place of an input byte sequence that cannot be decoded.
A type derived from the class. The default value is a object that emits the QUESTION MARK character ("?", U+003F) in place of unknown byte sequences.
1
Provides a buffer that allows a fallback handler to return an alternate string to a decoder when it cannot decode an input byte sequence.
2
Initializes a new instance of the class.
When overridden in a derived class, prepares the fallback buffer to handle the specified input byte sequence.
true if the fallback buffer can process ; false if the fallback buffer ignores .
An input array of bytes.
The index position of a byte in .
1
When overridden in a derived class, retrieves the next character in the fallback buffer.
The next character in the fallback buffer.
2
When overridden in a derived class, causes the next call to the method to access the data buffer character position that is prior to the current character position.
true if the operation was successful; otherwise, false.
1
When overridden in a derived class, gets the number of characters in the current object that remain to be processed.
The number of characters in the current fallback buffer that have not yet been processed.
1
Initializes all data and state information pertaining to this fallback buffer.
1
The exception that is thrown when a decoder fallback operation fails. This class cannot be inherited.
2
Initializes a new instance of the class.
Initializes a new instance of the class. A parameter specifies the error message.
An error message.
Initializes a new instance of the class. Parameters specify the error message, the array of bytes being decoded, and the index of the byte that cannot be decoded.
An error message.
The input byte array.
The index position in of the byte that cannot be decoded.
Initializes a new instance of the class. Parameters specify the error message and the inner exception that is the cause of this exception.
An error message.
The exception that caused this exception.
Gets the input byte sequence that caused the exception.
The input byte array that cannot be decoded.
2
Gets the index position in the input byte sequence of the byte that caused the exception.
The index position in the input byte array of the byte that cannot be decoded. The index position is zero-based.
1
Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character. The fallback emits a user-specified replacement string instead of a decoded input byte sequence. This class cannot be inherited.
2
Initializes a new instance of the class.
Initializes a new instance of the class using a specified replacement string.
A string that is emitted in a decoding operation in place of an input byte sequence that cannot be decoded.
is null.
contains an invalid surrogate pair. In other words, the surrogate pair does not consist of one high surrogate component followed by one low surrogate component.
Creates a object that is initialized with the replacement string of this object.
A object that specifies a string to use instead of the original decoding operation input.
2
Gets the replacement string that is the value of the object.
A substitute string that is emitted in place of an input byte sequence that cannot be decoded.
2
Indicates whether the value of a specified object is equal to the object.
true if is a object having a property that is equal to the property of the current object; otherwise, false.
A object.
2
Retrieves the hash code for the value of the object.
The hash code of the value of the object.
2
Gets the number of characters in the replacement string for the object.
The number of characters in the string that is emitted in place of a byte sequence that cannot be decoded, that is, the length of the string returned by the property.
2
Converts a set of characters into a sequence of bytes.
1
Initializes a new instance of the class.
Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes.
An array of characters to convert.
The first element of to convert.
The number of elements of to convert.
An array where the converted bytes are stored.
The first element of in which data is stored.
The maximum number of elements of to use in the conversion.
true to indicate no further data is to be converted; otherwise, false.
When this method returns, contains the number of characters from that were used in the conversion. This parameter is passed uninitialized.
When this method returns, contains the number of bytes that were produced by the conversion. This parameter is passed uninitialized.
When this method returns, contains true if all the characters specified by were converted; otherwise, false. This parameter is passed uninitialized.
or is null (Nothing).
, , , or is less than zero.-or-The length of - is less than .-or-The length of - is less than .
The output buffer is too small to contain any of the converted input. The output buffer should be greater than or equal to the size indicated by the method.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
Gets or sets a object for the current object.
A object.
The value in a set operation is null (Nothing).
A new value cannot be assigned in a set operation because the current object contains data that has not been encoded yet.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
1
Gets the object associated with the current object.
A object.
1
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array. A parameter indicates whether to clear the internal state of the encoder after the calculation.
The number of bytes produced by encoding the specified characters and any characters in the internal buffer.
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
true to simulate clearing the internal state of the encoder after the calculation; otherwise, false.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, encodes a set of characters from the specified character array and any characters in the internal buffer into the specified byte array. A parameter indicates whether to clear the internal state of the encoder after the conversion.
The actual number of bytes written into .
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
The byte array to contain the resulting sequence of bytes.
The index at which to start writing the resulting sequence of bytes.
true to clear the internal state of the encoder after the conversion; otherwise, false.
is null (Nothing).-or- is null (Nothing).
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting bytes.
A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)-and- is set to .
2
When overridden in a derived class, sets the encoder back to its initial state.
2
Provides a failure-handling mechanism, called a fallback, for an input character that cannot be converted to an output byte sequence. The fallback throws an exception if an input character cannot be converted to an output byte sequence. This class cannot be inherited.
2
Initializes a new instance of the class.
Returns an encoder fallback buffer that throws an exception if it cannot convert a character sequence to a byte sequence.
An encoder fallback buffer that throws an exception when it cannot encode a character sequence.
2
Indicates whether the current object and a specified object are equal.
true if is not null (Nothing in Visual Basic .NET) and is a object; otherwise, false.
An object that derives from the class.
2
Retrieves the hash code for this instance.
The return value is always the same arbitrary value, and has no special significance.
2
Gets the maximum number of characters this instance can return.
The return value is always zero.
2
Provides a failure-handling mechanism, called a fallback, for an input character that cannot be converted to an encoded output byte sequence.
2
Initializes a new instance of the class.
When overridden in a derived class, initializes a new instance of the class.
An object that provides a fallback buffer for an encoder.
2
Gets an object that throws an exception when an input character cannot be encoded.
A type derived from the class. The default value is a object.
1
When overridden in a derived class, gets the maximum number of characters the current object can return.
The maximum number of characters the current object can return.
2
Gets an object that outputs a substitute string in place of an input character that cannot be encoded.
A type derived from the class. The default value is a object that replaces unknown input characters with the QUESTION MARK character ("?", U+003F).
1
Provides a buffer that allows a fallback handler to return an alternate string to an encoder when it cannot encode an input character.
2
Initializes a new instance of the class.
When overridden in a derived class, prepares the fallback buffer to handle the specified surrogate pair.
true if the fallback buffer can process and ; false if the fallback buffer ignores the surrogate pair.
The high surrogate of the input pair.
The low surrogate of the input pair.
The index position of the surrogate pair in the input buffer.
1
When overridden in a derived class, prepares the fallback buffer to handle the specified input character.
true if the fallback buffer can process ; false if the fallback buffer ignores .
An input character.
The index position of the character in the input buffer.
1
When overridden in a derived class, retrieves the next character in the fallback buffer.
The next character in the fallback buffer.
2
When overridden in a derived class, causes the next call to the method to access the data buffer character position that is prior to the current character position.
true if the operation was successful; otherwise, false.
1
When overridden in a derived class, gets the number of characters in the current object that remain to be processed.
The number of characters in the current fallback buffer that have not yet been processed.
1
Initializes all data and state information pertaining to this fallback buffer.
1
The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited.
2
Initializes a new instance of the class.
Initializes a new instance of the class. A parameter specifies the error message.
An error message.
Initializes a new instance of the class. Parameters specify the error message and the inner exception that is the cause of this exception.
An error message.
The exception that caused this exception.
Gets the input character that caused the exception.
The character that cannot be encoded.
2
Gets the high component character of the surrogate pair that caused the exception.
The high component character of the surrogate pair that cannot be encoded.
2
Gets the low component character of the surrogate pair that caused the exception.
The low component character of the surrogate pair that cannot be encoded.
2
Gets the index position in the input buffer of the character that caused the exception.
The index position in the input buffer of the character that cannot be encoded.
1
Indicates whether the input that caused the exception is a surrogate pair.
true if the input was a surrogate pair; otherwise, false.
2
Provides a failure handling mechanism, called a fallback, for an input character that cannot be converted to an output byte sequence. The fallback uses a user-specified replacement string instead of the original input character. This class cannot be inherited.
2
Initializes a new instance of the class.
Initializes a new instance of the class using a specified replacement string.
A string that is converted in an encoding operation in place of an input character that cannot be encoded.
is null.
contains an invalid surrogate pair. In other words, the surrogate does not consist of one high surrogate component followed by one low surrogate component.
Creates a object that is initialized with the replacement string of this object.
A object equal to this object.
2
Gets the replacement string that is the value of the object.
A substitute string that is used in place of an input character that cannot be encoded.
2
Indicates whether the value of a specified object is equal to the object.
true if the parameter specifies an object and the replacement string of that object is equal to the replacement string of this object; otherwise, false.
A object.
2
Retrieves the hash code for the value of the object.
The hash code of the value of the object.
2
Gets the number of characters in the replacement string for the object.
The number of characters in the string used in place of an input character that cannot be encoded.
2
Represents a character encoding.To browse the .NET Framework source code for this type, see the Reference Source.
1
Initializes a new instance of the class.
Initializes a new instance of the class that corresponds to the specified code page.
The code page identifier of the preferred encoding.-or- 0, to use the default encoding.
is less than zero.
Initializes a new instance of the class that corresponds to the specified code page with the specified encoder and decoder fallback strategies.
The encoding code page identifier.
An object that provides an error-handling procedure when a character cannot be encoded with the current encoding.
An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding.
is less than zero.
Gets an encoding for the ASCII (7-bit) character set.
An encoding for the ASCII (7-bit) character set.
1
Gets an encoding for the UTF-16 format that uses the big endian byte order.
An encoding object for the UTF-16 format that uses the big endian byte order.
1
When overridden in a derived class, creates a shallow copy of the current object.
A copy of the current object.
2
When overridden in a derived class, gets the code page identifier of the current .
The code page identifier of the current .
2
Converts an entire byte array from one encoding to another.
An array of type containing the results of converting from to .
The encoding format of .
The target encoding format.
The bytes to convert.
is null.-or- is null.-or- is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-srcEncoding. is set to .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-dstEncoding. is set to .
1
Converts a range of bytes in a byte array from one encoding to another.
An array of type containing the result of converting a range of bytes in from to .
The encoding of the source array, .
The encoding of the output array.
The array of bytes to convert.
The index of the first element of to convert.
The number of bytes to convert.
is null.-or- is null.-or- is null.
and do not specify a valid range in the byte array.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-srcEncoding. is set to .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-dstEncoding. is set to .
1
Gets or sets the object for the current object.
The decoder fallback object for the current object.
The value in a set operation is null.
A value cannot be assigned in a set operation because the current object is read-only.
2
Gets or sets the object for the current object.
The encoder fallback object for the current object.
The value in a set operation is null.
A value cannot be assigned in a set operation because the current object is read-only.
2
When overridden in a derived class, gets the human-readable description of the current encoding.
The human-readable description of the current .
2
Determines whether the specified is equal to the current instance.
true if is an instance of and is equal to the current instance; otherwise, false.
The to compare with the current instance.
2
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.
The number of bytes produced by encoding the specified characters.
A pointer to the first character to encode.
The number of characters to encode.
is null.
is less than zero.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of bytes produced by encoding all the characters in the specified character array.
The number of bytes produced by encoding all the characters in the specified character array.
The character array containing the characters to encode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.
The number of bytes produced by encoding the specified characters.
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of bytes produced by encoding the characters in the specified string.
The number of bytes produced by encoding the specified characters.
The string containing the set of characters to encode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.
The actual number of bytes written at the location indicated by the parameter.
A pointer to the first character to encode.
The number of characters to encode.
A pointer to the location at which to start writing the resulting sequence of bytes.
The maximum number of bytes to write.
is null.-or- is null.
or is less than zero.
is less than the resulting number of bytes.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes all the characters in the specified character array into a sequence of bytes.
A byte array containing the results of encoding the specified set of characters.
The character array containing the characters to encode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes a set of characters from the specified character array into a sequence of bytes.
A byte array containing the results of encoding the specified set of characters.
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array.
The actual number of bytes written into .
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
The byte array to contain the resulting sequence of bytes.
The index at which to start writing the resulting sequence of bytes.
is null.-or- is null.
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting bytes.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes all the characters in the specified string into a sequence of bytes.
A byte array containing the results of encoding the specified set of characters.
The string containing the characters to encode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, encodes a set of characters from the specified string into the specified byte array.
The actual number of bytes written into .
The string containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
The byte array to contain the resulting sequence of bytes.
The index at which to start writing the resulting sequence of bytes.
is null.-or- is null.
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting bytes.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.
The number of characters produced by decoding the specified sequence of bytes.
A pointer to the first byte to decode.
The number of bytes to decode.
is null.
is less than zero.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of characters produced by decoding all the bytes in the specified byte array.
The number of characters produced by decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
The number of characters produced by decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.
The actual number of characters written at the location indicated by the parameter.
A pointer to the first byte to decode.
The number of bytes to decode.
A pointer to the location at which to start writing the resulting set of characters.
The maximum number of characters to write.
is null.-or- is null.
or is less than zero.
is less than the resulting number of characters.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, decodes all the bytes in the specified byte array into a set of characters.
A character array containing the results of decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a set of characters.
A character array containing the results of decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array.
The actual number of characters written into .
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The character array to contain the resulting set of characters.
The index at which to start writing the resulting set of characters.
is null.-or- is null.
or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in .
does not have enough capacity from to the end of the array to accommodate the resulting characters.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, obtains a decoder that converts an encoded sequence of bytes into a sequence of characters.
A that converts an encoded sequence of bytes into a sequence of characters.
1
When overridden in a derived class, obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes.
A that converts a sequence of Unicode characters into an encoded sequence of bytes.
1
Returns the encoding associated with the specified code page identifier.
The encoding that is associated with the specified code page.
The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the class topic.-or- 0 (zero), to use the default encoding.
is less than zero or greater than 65535.
is not supported by the underlying platform.
is not supported by the underlying platform.
1
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.
The encoding that is associated with the specified code page.
The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the class topic.-or- 0 (zero), to use the default encoding.
An object that provides an error-handling procedure when a character cannot be encoded with the current encoding.
An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding.
is less than zero or greater than 65535.
is not supported by the underlying platform.
is not supported by the underlying platform.
1
Returns the encoding associated with the specified code page name.
The encoding associated with the specified code page.
The code page name of the preferred encoding. Any value returned by the property is valid. Possible values are listed in the Name column of the table that appears in the class topic.
is not a valid code page name.-or- The code page indicated by is not supported by the underlying platform.
1
Returns the encoding associated with the specified code page name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.
The encoding that is associated with the specified code page.
The code page name of the preferred encoding. Any value returned by the property is valid. Possible values are listed in the Name column of the table that appears in the class topic.
An object that provides an error-handling procedure when a character cannot be encoded with the current encoding.
An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding.
is not a valid code page name.-or- The code page indicated by is not supported by the underlying platform.
1
Returns the hash code for the current instance.
The hash code for the current instance.
1
When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters.
The maximum number of bytes produced by encoding the specified number of characters.
The number of characters to encode.
is less than zero.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes.
The maximum number of characters produced by decoding the specified number of bytes.
The number of bytes to decode.
is less than zero.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, returns a sequence of bytes that specifies the encoding used.
A byte array containing a sequence of bytes that specifies the encoding used.-or- A byte array of length zero, if a preamble is not required.
1
When overridden in a derived class, decodes a specified number of bytes starting at a specified address into a string.
A string that contains the results of decoding the specified sequence of bytes.
A pointer to a byte array.
The number of bytes to decode.
is a null pointer.
is less than zero.
A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)-and- is set to .
When overridden in a derived class, decodes all the bytes in the specified byte array into a string.
A string that contains the results of decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
The byte array contains invalid Unicode code points.
is null.
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a string.
A string that contains the results of decoding the specified sequence of bytes.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The byte array contains invalid Unicode code points.
is null.
or is less than zero.-or- and do not denote a valid range in .
A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and- is set to .
1
When overridden in a derived class, gets a value indicating whether the current encoding uses single-byte code points.
true if the current uses single-byte code points; otherwise, false.
2
Registers an encoding provider.
A subclass of that provides access to additional character encodings.
is null.
Gets an encoding for the UTF-16 format using the little endian byte order.
An encoding for the UTF-16 format using the little endian byte order.
1
Gets an encoding for the UTF-32 format using the little endian byte order.
An encoding object for the UTF-32 format using the little endian byte order.
1
Gets an encoding for the UTF-7 format.
An encoding for the UTF-7 format.
1
Gets an encoding for the UTF-8 format.
An encoding for the UTF-8 format.
1
When overridden in a derived class, gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.
The IANA name for the current .
2
Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform.
Initializes a new instance of the class.
Returns the encoding associated with the specified code page identifier.
The encoding that is associated with the specified code page, or null if this cannot return a valid encoding that corresponds to .
The code page identifier of the requested encoding.
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.
The encoding that is associated with the specified code page, or null if this cannot return a valid encoding that corresponds to .
The code page identifier of the requested encoding.
An object that provides an error-handling procedure when a character cannot be encoded with this encoding.
An object that provides an error-handling procedure when a byte sequence cannot be decoded with this encoding.
Returns the encoding with the specified name.
The encoding that is associated with the specified name, or null if this cannot return a valid encoding that corresponds to .
The name of the requested encoding.
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.
The encoding that is associated with the specified name, or null if this cannot return a valid encoding that corresponds to .
The name of the preferred encoding.
An object that provides an error-handling procedure when a character cannot be encoded with this encoding.
An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding.