SqlDataType プロパティ
データ型で使用する SqlDataType 定義を示すデータ型を取得します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public Property SqlDataType As SqlDataType
Get
Set
'使用
Dim instance As DataType
Dim value As SqlDataType
value = instance.SqlDataType
instance.SqlDataType = value
public SqlDataType SqlDataType { get; set; }
public:
property SqlDataType SqlDataType {
SqlDataType get ();
void set (SqlDataType value);
}
member SqlDataType : SqlDataType with get, set
function get SqlDataType () : SqlDataType
function set SqlDataType (value : SqlDataType)
プロパティ値
型: Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
データ型の SqlDataType 定義を示す SqlDataType オブジェクト値です。
使用例
Visual Basic
Dim dt As DataType
dt = New DataType(SqlDataType.Int)
Console.WriteLine(dt.SqlDataType.ToString())
PowerShell
$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Int)
Write-Host $dt.SqlDataType