Właściwość DataType.SqlDataType
Pobiera typ danych, który określa SqlDataType definicja używana w typie danych.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
Public Property SqlDataType As SqlDataType
Get
Set
'Użycie
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)
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Smo.SqlDataType
A SqlDataType Określa wartość obiektu SqlDataType definicji typu danych.
Przykłady
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