Delen via


RegisteredServer.Rename Method (String)

Renames the RegisteredServer object by using the specified name.

Namespace:  Microsoft.SqlServer.Management.RegisteredServers
Assembly:  Microsoft.SqlServer.Management.RegisteredServers (in Microsoft.SqlServer.Management.RegisteredServers.dll)

Syntax

'Declaration
Public Sub Rename ( _
    name As String _
)
'Usage
Dim instance As RegisteredServer 
Dim name As String

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

Parameters

Implements

IRenamable.Rename(String)

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Examples

Handling SMO Exceptions

See Also

Reference

RegisteredServer Class

Rename Overload

Microsoft.SqlServer.Management.RegisteredServers Namespace