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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기