Freigeben über


RegisteredServerCollection.Remove Method

Removes a RegisteredServer object from the RegisteredServerCollection object.

Namespace: Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub Remove ( _
    key As String _
)
public void Remove (
    string key
)
public:
void Remove (
    String^ key
)
public void Remove (
    String key
)
public function Remove (
    key : String
)

Parameter

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

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Iterate Through the Members of a Collection in Visual Basic .NET

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

RegisteredServerCollection Class
RegisteredServerCollection Members
Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Andere Ressourcen

Using Collections