Udostępnij za pośrednictwem


Właściwość DataType.Text

Pobiera typ danych, który określa tekstu 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 Text As DataType
    Get
'Użycie
Dim value As DataType

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

Wartość właściwości

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

Przykłady

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Text, 10)

PowerShell

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