ScriptCreate 方法
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Generates a Transact-SQL script that can be used to create the job category, the operator category, or the alert category as specified by the scripting options.
命名空間: Microsoft.SqlServer.Management.Smo.Agent
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Protected Overrides Sub ScriptCreate ( _
queries As StringCollection, _
so As ScriptingOptions _
)
'用途
Dim queries As StringCollection
Dim so As ScriptingOptions
Me.ScriptCreate(queries, so)
protected override void ScriptCreate(
StringCollection queries,
ScriptingOptions so
)
protected:
virtual void ScriptCreate(
StringCollection^ queries,
ScriptingOptions^ so
) override
abstract ScriptCreate :
queries:StringCollection *
so:ScriptingOptions -> unit
override ScriptCreate :
queries:StringCollection *
so:ScriptingOptions -> unit
protected override function ScriptCreate(
queries : StringCollection,
so : ScriptingOptions
)
參數
- queries
型別:System.Collections.Specialized. . :: . .StringCollection
A StringCollection object that contains a list of Transact-SQL statements for the script.
- so
型別:Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.
備註
產生的指令碼可能包含未記載的內部程序;完整的指令碼輸出必須包含這些程序。