DecoderReplacementFallbackBuffer.Fallback(Byte[], Int32) Method
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.
Prepares the replacement fallback buffer to use the current replacement string.
public:
override bool Fallback(cli::array <System::Byte> ^ bytesUnknown, int index);
public override bool Fallback (byte[] bytesUnknown, int index);
override this.Fallback : byte[] * int -> bool
Public Overrides Function Fallback (bytesUnknown As Byte(), index As Integer) As Boolean
Parameters
- bytesUnknown
- Byte[]
An input byte sequence. This parameter is ignored unless an exception is thrown.
- index
- Int32
The index position of the byte in bytesUnknown
. This parameter is ignored in this operation.
Returns
true
if the replacement string is not empty; false
if the replacement string is empty.
Exceptions
This method is called again before the GetNextChar() method has read all the characters in the replacement fallback buffer.
Remarks
The GetBytes and Convert methods call Fallback if they encounter an unknown input byte sequence that cannot be decoded. If the return value of Fallback is true
, the calling method can invoke the GetNextChar method to obtain each character of the fallback buffer.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應