Méthode ScriptRename
Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. Renames a script that could be used to create the job, operator or alert category.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Protected Overrides Sub ScriptRename ( _
queries As StringCollection, _
so As ScriptingOptions, _
newName As String _
)
'Utilisation
Dim queries As StringCollection
Dim so As ScriptingOptions
Dim newName As String
Me.ScriptRename(queries, so, newName)
protected override void ScriptRename(
StringCollection queries,
ScriptingOptions so,
string newName
)
protected:
virtual void ScriptRename(
StringCollection^ queries,
ScriptingOptions^ so,
String^ newName
) override
abstract ScriptRename :
queries:StringCollection *
so:ScriptingOptions *
newName:string -> unit
override ScriptRename :
queries:StringCollection *
so:ScriptingOptions *
newName:string -> unit
protected override function ScriptRename(
queries : StringCollection,
so : ScriptingOptions,
newName : String
)
Paramètres
- queries
Type : System.Collections.Specialized. . :: . .StringCollection
A StringCollection object.
- so
Type : Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.
- newName
Type : System. . :: . .String
A String value that specifies the new name for the script.