Encoder.Fallback Property

Definition

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

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

Property Value

Attributes

Exceptions

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)

-and-

Fallback is set to EncoderExceptionFallback.

Remarks

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