CodeAttributeArgumentCollection.Remove Method (CodeAttributeArgument)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes the specified CodeAttributeArgument object from the collection.

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

public void Remove(
	CodeAttributeArgument value


Type: System.CodeDom.CodeAttributeArgument

The CodeAttributeArgument object to remove from the collection.

Exception Condition

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