DecoderExceptionFallbackBuffer::Fallback Method (array<Byte>^, Int32)
Throws DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- bytesUnknown
-
Type:
array<System::Byte>^
An input array of bytes.
- index
-
Type:
System::Int32
The index position of a byte in the input.
Return Value
Type: System::BooleanNone. No value is returned because the Fallback method always throws an exception.
The nominal return value is true. A return value is defined, although it is unchanging, because this method implements an abstract method.
| Exception | Condition |
|---|---|
| DecoderFallbackException | This method always throws an exception that reports the value and index position of the input byte that cannot be decoded. |
The GetBytes and Convert methods call Fallback if they encounter an unknown byte in their input. In response, the Fallback method always throws DecoderFallbackException and displays the input data. The Fallback method nominally indicates whether an exception is thrown if an input byte sequence cannot be decoded.
Available since 2.0