Udostępnij za pośrednictwem


Właściwość DataType.Variant

Pobiera typ danych, który określa wariantu 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 Shared ReadOnly Property Variant As DataType
    Get
'Użycie
Dim value As DataType

value = DataType.Variant
public static DataType Variant { get; }
public:
static property DataType^ Variant {
    DataType^ get ();
}
static member Variant : DataType
static function get Variant () : DataType

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo.DataType
A DataType Określa wartość obiektu wariantu definicji typu danych.

Przykłady

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Variant)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Variant)