SqlBinary.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從整數參數index所指示的位置取得Value單一位元組。 若 index 表示位元組陣列末端之外的位置,則會提出 a SqlNullValueException 。 這個屬性是唯讀的。
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
參數
- index
- Int32
要取回的位元組位置。
屬性值
位元組位於整數參數所指示的位置。
例外狀況
備註
為避免提出問題 SqlNullValueException,請務必先檢查該 IsNull 物業及該物業, Length 再閱讀此物業。