ScriptTask Constructor ()
Initializes a new instance of the ScriptTask class.
Assembly: Microsoft.SqlServer.ScriptTask (in Microsoft.SqlServer.ScriptTask.dll)
Although you can call the task constructor, you typically create the task as a member of a package.
In the following example, the properties and methods of the ScriptTask are available using Properties of the TaskHost variable, th. For more information about casting the task, see the remarks in Add.
The following code sample creates a new ScriptTask by using the constructor.
Show: