Encoder.Fallback Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈