共用方式為


OSVersion 屬性

Gets the host computer operating system version.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_OSVersionDesc")> _
<DisplayNameKeyAttribute("Server_OSVersionName")> _
ReadOnly Property OSVersion As String
    Get
'用途
Dim instance As IServerInformation
Dim value As String

value = instance.OSVersion
[DisplayDescriptionKeyAttribute("Server_OSVersionDesc")]
[DisplayNameKeyAttribute("Server_OSVersionName")]
string OSVersion { get; }
[DisplayDescriptionKeyAttribute(L"Server_OSVersionDesc")]
[DisplayNameKeyAttribute(L"Server_OSVersionName")]
property String^ OSVersion {
    String^ get ();
}
[<DisplayDescriptionKeyAttribute("Server_OSVersionDesc")>]
[<DisplayNameKeyAttribute("Server_OSVersionName")>]
abstract OSVersion : string
function get OSVersion () : String

屬性值

型別:System. . :: . .String
String