Méthode ScriptCreate
Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure 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.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Protected Overrides Sub ScriptCreate ( _
queries As StringCollection, _
so As ScriptingOptions _
)
'Utilisation
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
)
Paramètres
- queries
Type : System.Collections.Specialized. . :: . .StringCollection
A StringCollection object that contains a list of Transact-SQL statements for the script.
- so
Type : Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.
Notes
Le script généré contient peut-être des procédures internes non documentées, qui sont nécessaires pour la sortie complète du script.