UserDefinedDataType.MaxLength 屬性
Gets the maximum number of characters accepted by the user-defined data type.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property MaxLength As Short
Get
'用途
Dim instance As UserDefinedDataType
Dim value As Short
value = instance.MaxLength
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public short MaxLength { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property short MaxLength {
short get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member MaxLength : int16
function get MaxLength () : short
屬性值
型別:System.Int16
An Int16 (short) value that specifies the maximum number of characters accepted by the user-defined data type.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間