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)

protected override void ScriptCreate(
	StringCollection queries,
	ScriptingOptions so


Type: System.Collections.Specialized.StringCollection
A StringCollection object that contains a list of Transact-SQL statements for the script.
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.

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

Community Additions