共用方式為


SqlBinary.Length 屬性

定義

取得屬性的長度(位元組 Value )。 這個屬性是唯讀的。

public:
 property int Length { int get(); };
public int Length { get; }
member this.Length : int
Public ReadOnly Property Length As Integer

屬性值

屬性中 Value 二進位資料的長度。

例外狀況

LengthValue該屬性包含 Null時,該屬性即被讀取。

備註

為避免出現問題SqlNullValueException,請務必在閱讀Length房產前先檢查該IsNull物業。

適用於

另請參閱