CompilerErrorCollection.Remove(CompilerError) メソッド

定義

コレクションから特定の CompilerError を削除します。

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

パラメーター

例外

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

次の例では、CompilerErrorからCompilerErrorCollection項目を削除する方法を示します。

// Removes the specified CompilerError from the collection.
CompilerError error = new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text");
collection.Remove( error );
' Removes the specified CompilerError from the collection.
Dim [error] As New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text")
collection.Remove([error])

適用対象