DataType.SmallInt プロパティ
データ型で使用する SmallInt 定義を示すデータ型を取得します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public Shared ReadOnly Property SmallInt As DataType
Get
'使用
Dim value As DataType
value = DataType.SmallInt
public static DataType SmallInt { get; }
public:
static property DataType^ SmallInt {
DataType^ get ();
}
static member SmallInt : DataType
static function get SmallInt () : DataType
プロパティ値
型: Microsoft.SqlServer.Management.Smo.DataType
データ型の SmallInt 定義を示す DataType オブジェクト値です。
説明
SmallInt は、2 バイトで格納される整数です。 最大値は 32,767 です。 最小値は -32,767 です。
使用例
Visual Basic
Dim dt As DataType
dt = New DataType(SqlDataType.SmallInt)
PowerShell
$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::SmallInt)
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間