Condividi tramite


Metodo TargetServerGroup.Rename

Renames the referenced target server group.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub Rename ( _
    newName As String _
)
'Utilizzo
Dim instance As TargetServerGroup 
Dim newName As String

instance.Rename(newName)
public void Rename(
    string newName
)
public:
virtual void Rename(
    String^ newName
) sealed
abstract Rename : 
        newName:string -> unit  
override Rename : 
        newName:string -> unit
public final function Rename(
    newName : String
)

Parametri

  • newName
    Tipo: System.String
    A String value that specifies the new name of the target server group.

Implementa

IRenamable.Rename(String)

Esempi

Pianificazione delle attività amministrative automatiche in SQL Server Agent

Vedere anche

Riferimento

TargetServerGroup Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent

Altre risorse

Automatizzazione delle attività amministrative (SQL Server Agent)

sp_update_targetservergroup (Transact-SQL)