Метод ScriptRename
Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. Renames a script that could be used to create the job, operator or alert category.
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Protected Overrides Sub ScriptRename ( _
queries As StringCollection, _
so As ScriptingOptions, _
newName As String _
)
'Применение
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
)
Параметры
- queries
Тип: System.Collections.Specialized. . :: . .StringCollection
A StringCollection object.
- so
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options.
- newName
Тип: System. . :: . .String
A String value that specifies the new name for the script.