UserDefinedDataType.Length プロパティ

ユーザー定義データ型の文字数を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property Length As Integer 
    Get 
    Set
'使用
Dim instance As UserDefinedDataType 
Dim value As Integer 

value = instance.Length

instance.Length = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public int Length { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property int Length {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member Length : int with get, set
function get Length () : int 
function set Length (value : int)

プロパティ値

型: System.Int32
ユーザー定義データ型で使用できる最大文字数を示す Int32 値。

使用例

データ型の処理

関連項目

参照

UserDefinedDataType クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

データ型 (データベース エンジン)

CREATE TYPE (Transact-SQL)