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