ScriptRename-Methode
Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Renames a script that could be used to create the job, operator or alert category.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Protected Overrides Sub ScriptRename ( _
queries As StringCollection, _
so As ScriptingOptions, _
newName As String _
)
'Usage
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
)
Parameter
- queries
Typ: System.Collections.Specialized. . :: . .StringCollection
A StringCollection object.
- so
Typ: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.
- newName
Typ: System. . :: . .String
A String value that specifies the new name for the script.