SqlBinary.Item[Int32] SqlBinary.Item[Int32] SqlBinary.Item[Int32] SqlBinary.Item[Int32] Property


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.

 property System::Byte default[int] { System::Byte get(int index); };
public byte this[int index] { get; }
member this.Item(int) : byte
Default Public ReadOnly Property Item(index As Integer) As Byte


Int32 Int32 Int32 Int32

The position of the byte to be retrieved.

Property Value

The byte located at the position indicated by the integer parameter.


The property is read when the Value property contains Null


The index parameter indicates a position beyond the length of the byte array as indicated by the Length property.


To avoid raising a SqlNullValueException, always examine the IsNull property and the Length property before reading this property.

Applies to

See also