DecoderExceptionFallback.CreateFallbackBuffer Method

Definition

Returns a decoder fallback buffer that throws an exception if it cannot convert a sequence of bytes to a character.

public override System.Text.DecoderFallbackBuffer CreateFallbackBuffer ();

Returns

A decoder fallback buffer that throws an exception when it cannot decode a byte sequence.

Remarks

A decoder fallback buffer is responsible for receiving and handling byte sequences that a decoder cannot convert to characters. This method returns an instance of the DecoderExceptionFallbackBuffer class, which is a subclass of the DecoderFallbackBuffer class. A DecoderExceptionFallbackBuffer object throws an DecoderFallbackException exception whenever a sequence of bytes is passed to its Fallback method.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0