共用方式為


IServerInformation.VersionString 屬性

Gets the date, version, and processor type of the instance of SQL Server.

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

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_VersionStringDesc")> _
<DisplayNameKeyAttribute("Server_VersionStringName")> _
ReadOnly Property VersionString As String 
    Get
'用途
Dim instance As IServerInformation 
Dim value As String 

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

屬性值

型別:System.String
The date, version, and processor type of the instance of SQL Server.

請參閱

參考

IServerInformation 介面

Microsoft.SqlServer.Management.Smo 命名空間