Index Property
Collapse the table of content
Expand the table of content

DecoderFallbackException.Index Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the index position in the input byte sequence of the byte that caused the exception.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public ReadOnly Property Index As Integer

Property Value

Type: System.Int32
The index position in the input byte array of the last byte that could be successfully decoded. The index position is zero-based. If the first byte cannot be decoded, the method returns -1.

The application uses the BytesUnknown property to retrieve the input byte array that contains the byte that cannot be decoded.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft