Share via


Generator.MaxLength Property

Gets or sets the maximum length for values in this column.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
<InputAttribute(AutoAssignedInput := AutoAssignedInput.MaxLength, Visible := False)> _
Public Property MaxLength As Integer
[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)

Property Value

Type: System.Int32
An int that contains the maximum length for the column.

Remarks

This property is decorated with the InputAttribute and the AutoAssignedInput named parameter.

.NET Framework Security

See Also

Reference

Generator Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

InputAttribute

AutoAssignedInput