Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DecoderFallback::CreateFallbackBuffer Method ()

 

When overridden in a derived class, initializes a new instance of the DecoderFallbackBuffer class.

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

public:
virtual DecoderFallbackBuffer^ CreateFallbackBuffer() abstract

Return Value

Type: System.Text::DecoderFallbackBuffer^

An object that provides a fallback buffer for a decoder.

This method returns an object derived from DecoderFallbackBuffer that is responsible for performing the fallback operation. For example, of the predefined DecoderFallback implementations in the .NET Framework, the DecoderReplacementFallback::CreateFallbackBuffer method returns a DecoderReplacementFallbackBuffer object, and the DecoderExceptionFallback::CreateFallbackBuffer method returns a DecoderExceptionFallbackBuffer object.

TheCreateFallbackBuffer method is called by a decoder when it encounters the first byte that it is unable to decode. The DecoderFallbackBuffer object returned by this method provides the fallback implementation and is responsible for returning the string that replaces the byte or bytes that could not be decoded.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft