Export (0) Print
Expand All

DecoderFallbackException Constructor (String, Byte[], Int32)

Initializes a new instance of the DecoderFallbackException class. Parameters specify the error message, the array of bytes being decoded, and the index of the byte that cannot be decoded.

Namespace:  System.Text
Assemblies:   System.Text.Encoding (in System.Text.Encoding.dll)
  mscorlib (in mscorlib.dll)

public DecoderFallbackException(
	string message,
	byte[] bytesUnknown,
	int index
)

Parameters

message
Type: System.String

An error message.

bytesUnknown
Type: System.Byte[]

The input byte array.

index
Type: System.Int32

The index position in bytesUnknown of the byte that cannot be decoded.

The Exception.HResult property for this exception is set to COR_E_ARGUMENT (0x80070057).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft