Redigera

Dela via


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); };
public System.Text.EncoderFallback Fallback { get; set; }
public System.Text.EncoderFallback? Fallback { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.Text.EncoderFallback Fallback { get; set; }
member this.Fallback : System.Text.EncoderFallback with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Fallback : System.Text.EncoderFallback with get, set
Public Property Fallback As EncoderFallback

Property Value

A EncoderFallback object.

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 (for more information, see Character Encoding in .NET)

-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