共用方式為


IncludeIfNotExists 屬性

取得物件,指定是否要先檢查物件是否存在,再將它加入指令碼中。

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

語法

'宣告
Public Shared ReadOnly Property IncludeIfNotExists As ScriptOption
    Get
'用途
Dim value As ScriptOption

value = ScriptOption.IncludeIfNotExists
public static ScriptOption IncludeIfNotExists { get; }
public:
static property ScriptOption^ IncludeIfNotExists {
    ScriptOption^ get ();
}
static member IncludeIfNotExists : ScriptOption
static function get IncludeIfNotExists () : ScriptOption

屬性值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ScriptOption
ScriptOption 物件,代表指令碼選項中的 IncludeIfNotExists

範例

指令碼