다음을 통해 공유


SqlDataType 속성

Gets a data type that specifies the SqlDataType definition used in the data type.

네임스페이스:  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
A SqlDataType object value that specifies an SqlDataType definition in the data type.

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