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)

[ComVisibleAttribute(false)]
public EncoderFallback Fallback { get; set; }

Property Value

Type: System.Text.EncoderFallback

A EncoderFallback object.

Exception Condition
ArgumentNullException

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

ArgumentException

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

EncoderFallbackException

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

-and-

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
Show:
© 2016 Microsoft