Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CompilerErrorCollection::Remove Method (CompilerError^)

 

Removes a specific CompilerError from the collection.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

public:
void Remove(
	CompilerError^ value
)

Exception Condition
ArgumentException

The specified object is not found in the collection.

The following example demonstrates how to remove a CompilerError item from a CompilerErrorCollection.

// Removes the specified CompilerError from the collection.
CompilerError^ error = gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" );
collection->Remove( error );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft