JobStep.Script Method (ScriptingOptions)
SQL Server 2005
Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job step as specified by the scripting options.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
public final StringCollection Script ( ScriptingOptions scriptingOptions )
public final function Script ( scriptingOptions : ScriptingOptions ) : StringCollection
Parameters
- scriptingOptions
A ScriptingOptions object value that specifies the scripting options.
Return Value
A StringCollection system object value that contains a list of Transact-SQL statements in the script.Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Note: