共用方式為


IncludeDatabaseContext 屬性

取得物件值,指定產生的指令碼中是否包含資料庫內容。

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

語法

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

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

屬性值

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

範例

指令碼