CodeNamespaceCollection.Remove(CodeNamespace) 方法

定义

从集合中删除指定的 CodeNamespace 对象。

public:
 void Remove(System::CodeDom::CodeNamespace ^ value);
public void Remove(System.CodeDom.CodeNamespace value);
member this.Remove : System.CodeDom.CodeNamespace -> unit
Public Sub Remove (value As CodeNamespace)

参数

value
CodeNamespace

CodeNamespace 从集合中移除的集合。

例外

集合中找不到指定的对象。

示例

下面的示例演示如何使用该方法从 <a0/> 中删除对象。

// Removes the specified CodeNamespace from the collection.
CodeNamespace namespace_ = new CodeNamespace("TestNamespace");
collection.Remove( namespace_ );
' Removes the specified CodeNamespace from the collection.
Dim namespace_ As New CodeNamespace("TestNamespace")
collection.Remove(namespace_)

适用于