Export (0) Print
Expand All

EncoderReplacementFallbackBuffer Class

Represents a substitute input string that is used when the original input character cannot be encoded. This class cannot be inherited.

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

public sealed class EncoderReplacementFallbackBuffer : EncoderFallbackBuffer
public final class EncoderReplacementFallbackBuffer extends EncoderFallbackBuffer
public final class EncoderReplacementFallbackBuffer extends EncoderFallbackBuffer
Not applicable.

It might not be possible to convert a character to an equivalent encoded byte sequence if no suitable encoding exists. A common reason for an encoding to fail is if the conversion operation uses a code page that cannot represent the character to encode.

If the input character cannot be converted to an output byte sequence, a System.Text.EncoderReplacementFallback object provides a replacement string that is substituted for the original input character. The replacement string initializes the value of the EncoderReplacementFallback object, and the value of the EncoderReplacementFallback object initializes the value of an EncoderReplacementFallbackBuffer object. The value of an EncoderReplacementFallbackBuffer object is called the replacement fallback buffer. The conversion operation encodes the replacement fallback buffer instead of the original input character, then continues to process the remainder of the input.

System.Object
   System.Text.EncoderFallbackBuffer
    System.Text.EncoderReplacementFallbackBuffer

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft