Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DecoderFallbackException Constructor (String, Byte[], Int32)

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


Type: System.String

An error message.

Type: System.Byte[]

The input byte array.

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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft