DecoderExceptionFallbackBuffer Class

Throws DecoderFallbackException when an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited.

System.Object
  System.Text.DecoderFallbackBuffer
    System.Text.DecoderExceptionFallbackBuffer

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

public sealed class DecoderExceptionFallbackBuffer : DecoderFallbackBuffer

The DecoderExceptionFallbackBuffer type exposes the following members.

  NameDescription
Public methodDecoderExceptionFallbackBufferInitializes a new instance of the DecoderExceptionFallbackBuffer class.
Top

  NameDescription
Public propertyRemainingGets the number of characters in the current DecoderExceptionFallbackBuffer object that remain to be processed. (Overrides DecoderFallbackBuffer.Remaining.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodFallbackThrows DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used. (Overrides DecoderFallbackBuffer.Fallback(Byte[], Int32).)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetNextCharRetrieves the next character in the exception data buffer. (Overrides DecoderFallbackBuffer.GetNextChar().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodMovePreviousCauses the next call to GetNextChar to access the exception data buffer character position that is prior to the current position. (Overrides DecoderFallbackBuffer.MovePrevious().)
Public methodResetInitializes all data and state information pertaining to this fallback buffer. (Inherited from DecoderFallbackBuffer.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

A common reason for an encoding or decoding operation to fail is if the underlying encoding class does not provide a mapping between a character and an equivalent byte sequence. If the input byte sequence cannot be converted to an output character, the decoding operation calls the Fallback method, which throws DecoderFallbackException.

The System.Text.DecoderFallbackBuffer class, which represents a data buffer used in a decoding operation, is the base class for the DecoderExceptionFallbackBuffer class. However, instead of a data buffer, the DecoderExceptionFallbackBuffer class represents a standard behavior in which an exception is thrown if a decoding operation fails. No actual data buffer exists, and the members designed to manipulate such a buffer do no significant work.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft