閱讀英文

共用方式為


OSVersion 屬性

Gets the version of the operating system used by the computer hosting the server.

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

語法

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

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

屬性值

型別:System. . :: . .String
A string value that specifies the version of the operating system used by the computer hosting the server.