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.
注释
生成的脚本可能包含完成脚本输出所必需的未记录的内部过程。