EncoderExceptionFallbackBuffer: Fallback

Fallback

Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the surrogate pair in the input, and the nominal return value is not used.



 Public Function Fallback(
	  ByVal UnknownCharOrHighSurrogate As Long,
	  Optional ByRef UnknownLowSurrogate As Variant,
	  Optional ByVal Index As Long ) As Boolean

Parameters

UnknownCharOrHighSurrogate
[ByVal] Long. The high surrogate of the input pair.
UnknownLowSurrogate
[ByRef] Optional. Variant. The low surrogate of the input pair.
Index
[ByVal] Optional. Long. The index position of the surrogate pair in the input buffer.

Return Values

Boolean -  None. No value is returned because the Fallback method always throws an exception.

Exceptions

Exception Condition
EncoderFallbackExceptionThe character represented by UnknownCharOrHighSurrogate and UnknownLowSurrogate cannot be encoded.
ArgumentOutOfRangeException Either UnknownCharOrHighSurrogate or UnknownLowSurrogate is invalid.

See Also

Project CorLib Overview

Class EncoderExceptionFallbackBuffer Overview