Fallback Property
Collapse the table of content
Expand the table of content

Encoder.Fallback Property


Gets or sets a EncoderFallback object for the current Encoder object.

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

public EncoderFallback Fallback { get; set; }

Property Value

Type: System.Text.EncoderFallback

A EncoderFallback object.

Exception Condition

The value in a set operation is null (Nothing).


A new value cannot be assigned in a set operation because the current EncoderFallbackBuffer object contains data that has not been encoded yet.


A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)


Fallback is set to EncoderExceptionFallback.

The EncoderFallback object represents an error handler that is invoked when a character cannot be converted into an encoded byte sequence.

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