次の方法で共有


Information.Version プロパティ

SQL Server のインスタンスのバージョンを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public ReadOnly Property Version As Version 
    Get
'使用
Dim instance As Information 
Dim value As Version 

value = instance.Version
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public Version Version { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
property Version^ Version {
    Version^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
member Version : Version
function get Version () : Version

プロパティ値

型: System.Version
SQL Server のインスタンスのバージョンを示す Version オブジェクトです。

使用例

SMO での SQL Server の構成

関連項目

参照

Information クラス

Microsoft.SqlServer.Management.Smo 名前空間