Share via


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 = gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" );
collection->Remove( error );
// 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])

適用対象