次の方法で共有


OSVersion プロパティ

SQL Server のマネージ インスタンスのオペレーティング システムのバージョンを取得します。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property OSVersion As String
    Get
'使用
Dim instance As ManagedInstance
Dim value As String

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

プロパティ値

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