共用方式為


DataObjectFieldAttribute.Length 屬性

定義

以位元組表示屬性的長度。

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

屬性值

屬性長度以位元組為單位,若未設定則為 -1。

備註

將屬性 Length 設定為底層資料儲存資料的長度(以位元組為單位)。 如果 Length 屬性未被設定,則為 -1。

用其中一個DataObjectFieldAttribute建構子設定該Length屬性。

適用於