DataType.MaximumLength DataType.MaximumLength DataType.MaximumLength Property

Definition

Gets the maximum length of the data type.

public:
 property int MaximumLength { int get(); void set(int value); };
public int MaximumLength { get; set; }
Public Property MaximumLength As Integer
Property Value

An Int32 value that specifies the maximum length of the data type.

Examples

Visual Basic

Dim d As DataType  
d = New DataType(SqlDataType.MaximumLength)  

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::MaximumLength)  

Applies to