共用方式為


Generator.MaxLength 屬性

取得或設定這個資料行中值的最大長度。

命名空間:  Microsoft.Data.Schema.Tools.DataGenerator
組件:  Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)

語法

'宣告
<InputAttribute(AutoAssignedInput := AutoAssignedInput.MaxLength, Visible := False)> _
Public Property MaxLength As Integer
    Get
    Set
[InputAttribute(AutoAssignedInput = AutoAssignedInput.MaxLength, Visible = false)]
public int MaxLength { get; set; }
[InputAttribute(AutoAssignedInput = AutoAssignedInput::MaxLength, Visible = false)]
public:
property int MaxLength {
    int get ();
    void set (int value);
}
[<InputAttribute(AutoAssignedInput = AutoAssignedInput.MaxLength, Visible = false)>]
member MaxLength : int with get, set
function get MaxLength () : int
function set MaxLength (value : int)

屬性值

型別:System.Int32
int ,包含資料行的最大長度。

備註

這個屬性會以 InputAttributeAutoAssignedInput 具名參數來裝飾。

.NET Framework 安全性

請參閱

參考

Generator 類別

Microsoft.Data.Schema.Tools.DataGenerator 命名空間

InputAttribute

AutoAssignedInput