Encoder.Fallback Property


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

 property System::Text::EncoderFallback ^ Fallback { System::Text::EncoderFallback ^ get(); void set(System::Text::EncoderFallback ^ value); };
public System.Text.EncoderFallback Fallback { get; set; }
member this.Fallback : System.Text.EncoderFallback with get, set
Public Property Fallback As EncoderFallback

Property Value



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.

Applies to

See also