共用方式為


Server.Version 屬性

Gets the Version property value.

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

語法

'宣告
<SfcSerializationAdapterAttribute(GetType(VersionSerializationAdapter))> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property Version As Version 
    Get 
    Friend Set
'用途
Dim instance As Server 
Dim value As Version 

value = instance.Version
[SfcSerializationAdapterAttribute(typeof(VersionSerializationAdapter))]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public Version Version { get; internal set; }
[SfcSerializationAdapterAttribute(typeof(VersionSerializationAdapter))]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property Version^ Version {
    Version^ get ();
    internal: void set (Version^ value);
}
[<SfcSerializationAdapterAttribute(typeof(VersionSerializationAdapter))>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member Version : Version with get, internal set
function get Version () : Version 
internal function set Version (value : Version)

屬性值

型別:System.Version
Version object.

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間