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

Definition

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.

public:
 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

Parameters

index
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.

Exceptions

The property is read when the Value property contains Null

-or-

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

Remarks

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

Applies to

See also