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)