CodeNamespaceCollection.Remove(CodeNamespace) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从集合中删除指定的 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 从集合中移除的集合。
例外
集合中找不到指定的对象。
示例
下面的示例演示如何使用
// 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_)