Condividi tramite


Proprietà OSVersion

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<DisplayNameKeyAttribute("Server_OSVersionName")> _
<DisplayDescriptionKeyAttribute("Server_OSVersionDesc")> _
ReadOnly Property OSVersion As String
    Get
'Utilizzo
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

Valore proprietà

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