Export (0) Print
Expand All

EncoderExceptionFallback.CreateFallbackBuffer Method

Returns an encoder fallback buffer that throws an exception if it cannot convert a character sequence to a byte sequence.

Namespace:  System.Text
Assemblies:   System.Text.Encoding (in System.Text.Encoding.dll)
  mscorlib (in mscorlib.dll)

public override EncoderFallbackBuffer CreateFallbackBuffer()

Return Value

Type: System.Text.EncoderFallbackBuffer
An encoder fallback buffer that throws an exception when it cannot encode a character sequence.

An encoder fallback buffer is responsible for receiving and handling characters that an encoder cannot convert to a byte sequence. This method returns an instance of the EncoderExceptionFallbackBuffer class, which is a subclass of the EncoderFallbackBuffer class. An EncoderExceptionFallbackBuffer object throws an EncoderFallbackException exception whenever characters are passed to its EncoderExceptionFallbackBuffer.Fallback method.

.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
Show:
© 2015 Microsoft