CodeAttributeArgumentCollection.Remove Method (CodeAttributeArgument)

 

Removes the specified CodeAttributeArgument object from the collection.

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

public void Remove(
	CodeAttributeArgument value
)

Parameters

value
Type: System.CodeDom.CodeAttributeArgument

The CodeAttributeArgument object to remove from the collection.

Exception Condition
ArgumentException

The specified object is not found in the collection.

The following example demonstrates how to use the Remove method to delete a CodeAttributeArgument object from a CodeAttributeArgumentCollection.

// Removes the specified CodeAttributeArgument from the collection.
CodeAttributeArgument argument = new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true));
collection.Remove( argument );

.NET Framework
Available since 1.1
Return to top
Show: