共用方式為


TargetServerVersion 屬性

Gets or sets the version of the instance of SQL Server for which the generated script is intended.

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

語法

'宣告
Public Property TargetServerVersion As SqlServerVersion
    Get
    Set
'用途
Dim instance As ScriptingOptions
Dim value As SqlServerVersion

value = instance.TargetServerVersion

instance.TargetServerVersion = value
public SqlServerVersion TargetServerVersion { get; set; }
public:
property SqlServerVersion TargetServerVersion {
    SqlServerVersion get ();
    void set (SqlServerVersion value);
}
member TargetServerVersion : SqlServerVersion with get, set
function get TargetServerVersion () : SqlServerVersion
function set TargetServerVersion (value : SqlServerVersion)

屬性值

型別:Microsoft.SqlServer.Management.Smo. . :: . .SqlServerVersion
A SqlServerVersion object value that specifies the version of the instance of SQL Server.

範例

指令碼