共用方式為


SqlBinary.Item[Int32] 屬性

定義

從整數參數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

要取回的位元組位置。

屬性值

位元組位於整數參數所指示的位置。

例外狀況

Value 該屬性包含 Null

-或-

參數 index 指示超出位元組陣列長度的位置,依據屬性 Length 所示。

備註

為避免提出問題 SqlNullValueException,請務必先檢查該 IsNull 物業及該物業, Length 再閱讀此物業。

適用於

另請參閱