RegisteredServerCollection.Remove Method

Removes a RegisteredServer object from the RegisteredServerCollection object.

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

Syntax

'Declaration
Public Sub Remove ( _
    key As String _
)
'Usage
Dim instance As RegisteredServerCollection
Dim key As String

instance.Remove(key)
public void Remove(
    string key
)
public:
void Remove(
    String^ key
)
member Remove : 
        key:string -> unit 
public function Remove(
    key : String
)

Parameters

  • key
    Type: System.String
    A String value that specifies the name of the registered server that is to be removed from the collection.