Server.SystemDataTypes プロパティ

SystemDataType オブジェクトのコレクションを表します。 各 SystemDataType オブジェクトは、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
SQL Server のインスタンスで定義されたすべてのシステム データ型を表す SystemDataTypeCollection オブジェクトです。

説明

SystemDataTypes プロパティは SystemDataTypeCollection オブジェクトを参照しています。 このコレクションを使用して、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 名前空間

その他の技術情報

データ型の処理

コレクションの使用

プロパティの設定

サーバーの管理