Share via


ServerGroupCollection.Remove Method

Removes a ServerGroup object from the ServerGroupCollection 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 ServerGroupCollection 
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 server group that is to be removed from the collection.

Examples

Using Collections

See Also

Reference

ServerGroupCollection Class

Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Other Resources

Using Collections