次の方法で共有


CodeCatchClauseCollection.Remove メソッド

指定した CodeCatchClause をコレクションから削除します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)

構文

'宣言
Public Sub Remove ( _
    value As CodeCatchClause _
)
'使用
Dim instance As CodeCatchClauseCollection
Dim value As CodeCatchClause

instance.Remove(value)
public void Remove (
    CodeCatchClause value
)
public:
void Remove (
    CodeCatchClause^ value
)
public void Remove (
    CodeCatchClause value
)
public function Remove (
    value : CodeCatchClause
)

パラメータ

例外

例外の種類 条件

ArgumentException

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

使用例

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

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

CodeCatchClauseCollection クラス
CodeCatchClauseCollection メンバ
System.CodeDom 名前空間