SqlBinary::Item Property (Int32)
.NET Framework (current version)
Gets the single byte from the Value property located at the position indicated by the integer parameter, index. If index indicates a position beyond the end of the byte array, a SqlNullValueException will be raised. This property is read-only.
Assembly: System.Data (in System.Data.dll)
Parameters
- index
-
Type:
System::Int32
The position of the byte to be retrieved.
Property Value
Type: System::ByteThe byte located at the position indicated by the integer parameter.
| Exception | Condition |
|---|---|
| SqlNullValueException |
To avoid raising a SqlNullValueException, always examine the IsNull property and the Length property before reading this property.
.NET Framework
Available since 1.1
Available since 1.1
Show: