共用方式為


RegisteredServerCollection.Remove 方法

Removes a RegisteredServer object from the RegisteredServerCollection object.

命名空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Sub Remove ( _
    key As String _
)
'用途
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
)

參數

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

範例

使用集合

請參閱

參考

RegisteredServerCollection 類別

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

使用集合