CodeCatchClauseCollection.Remove(CodeCatchClause) 方法

定义

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

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

参数

value
CodeCatchClause

CodeCatchClause 从集合中移除的对象。

例外

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

示例

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

// Removes the specified CodeCatchClause from the collection.
CodeCatchClause clause = new CodeCatchClause("e");
collection.Remove( clause );
' Removes the specified CodeCatchClause from the collection.
Dim clause As New CodeCatchClause("e")
collection.Remove(clause)

适用于