다음을 통해 공유


Server.SystemDataTypes 속성

Represents a collection of SystemDataType objects. Each SystemDataType object represents a system data type defined on the instance of SQL Server.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(SystemDataType))> _
Public ReadOnly Property SystemDataTypes As SystemDataTypeCollection 
    Get
‘사용 방법
Dim instance As Server 
Dim value As SystemDataTypeCollection 

value = instance.SystemDataTypes
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(SystemDataType))]
public SystemDataTypeCollection SystemDataTypes { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(SystemDataType))]
public:
property SystemDataTypeCollection^ SystemDataTypes {
    SystemDataTypeCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(SystemDataType))>]
member SystemDataTypes : SystemDataTypeCollection
function get SystemDataTypes () : SystemDataTypeCollection

속성 값

유형: Microsoft.SqlServer.Management.Smo.SystemDataTypeCollection
A SystemDataTypeCollection object that represents all the system data types defined on the instance of SQL Server.

주의

The SystemDataTypes property points to the SystemDataTypeCollection object. You can use the collection to reference the system data types that are available to the instance of SQL Server.

Visual Basic

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display the system data types.
Dim sr As SystemDataType
For Each sr In srv.SystemDataTypes
   Console.WriteLine(sr.Name)
Next

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
foreach ($sr in $srv.SystemDataTypes)
{
   Write-Host $sr.Name
}

참고 항목

참조

Server 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

데이터 형식 사용

컬렉션 사용

속성 설정

서버 관리