AddDatabaseContext 方法 (StringCollection, ScriptingOptions)
將資料庫內容加入至以 queries 參數來識別的查詢集合,並使用指定的指令碼選項。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Protected Sub AddDatabaseContext ( _
queries As StringCollection, _
so As ScriptingOptions _
)
'用途
Dim queries As StringCollection
Dim so As ScriptingOptions
Me.AddDatabaseContext(queries, so)
protected void AddDatabaseContext(
StringCollection queries,
ScriptingOptions so
)
protected:
void AddDatabaseContext(
StringCollection^ queries,
ScriptingOptions^ so
)
member AddDatabaseContext :
queries:StringCollection *
so:ScriptingOptions -> unit
protected function AddDatabaseContext(
queries : StringCollection,
so : ScriptingOptions
)
參數
- so
型別:Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
描述資料庫之指令碼選項集的 ScriptingOptions 物件。
備註
Example