Remove Method

CodeParameterDeclarationExpressionCollection.Remove Method (CodeParameterDeclarationExpression)

 

Removes the specified CodeParameterDeclarationExpression from the collection.

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

public void Remove(
	CodeParameterDeclarationExpression value
)

Parameters

value
Type: System.CodeDom.CodeParameterDeclarationExpression

The CodeParameterDeclarationExpression 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 CodeParameterDeclarationExpression object from a CodeParameterDeclarationExpressionCollection.

// Removes the specified CodeParameterDeclarationExpression 
// from the collection.
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(typeof(int), "testIntArgument");
collection.Remove( parameter );

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