MaximumLength 属性

Gets the maximum length of the data type.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Property MaximumLength As Integer
    Get
    Set
用法
Dim instance As DataType
Dim value As Integer

value = instance.MaximumLength

instance.MaximumLength = value
public int MaximumLength { get; set; }
public:
property int MaximumLength {
    int get ();
    void set (int value);
}
member MaximumLength : int with get, set
function get MaximumLength () : int
function set MaximumLength (value : int)

属性值

类型:System. . :: . .Int32
An Int32 value that specifies the maximum length of the data type.

示例

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)