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 オブジェクト。

例外

指定したオブジェクトがコレクション内に見つかりません。

次の例では、Remove メソッドを使用して、CodeCatchClauseからCodeCatchClauseCollection オブジェクトを削除する方法を示します。

// 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)

適用対象