DecoderFallbackException Constructor (String, Byte[], Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Assembly:  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).

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: