EncoderExceptionFallback.CreateFallbackBuffer Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Text
Assembly:  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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top