Delen via


CategoryBase.ScriptCreate Method

Do not reference this member directly in your code. It supports the SQL Server infrastructure. 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.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Protected Overrides Sub ScriptCreate ( _
    queries As StringCollection, _
    so As ScriptingOptions _
)
'Usage
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
)

Parameters

Remarks

The generated script might contain undocumented, internal procedures, which are required for the complete script output.

Examples

Scripting