Information.OSVersion プロパティ

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 OSVersion As String 
    Get
'使用
Dim instance As Information 
Dim value As String 

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

プロパティ値

型: System.String
オペレーティング システムのバージョンを示す String 値です。

使用例

SMO での SQL Server の構成

関連項目

参照

Information クラス

Microsoft.SqlServer.Management.Smo 名前空間