DecoderReplacementFallbackBuffer.Fallback(Byte[], Int32) Method
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
- 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.
true
if the replacement string is not empty; false
if the replacement string is empty.
This method is called again before the GetNextChar() method has read all the characters in the replacement fallback buffer.
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.
제품 | 버전 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.