Editar

Compartir a través de


CodeParameterDeclarationExpressionCollection.Remove Method

Definition

Removes the specified CodeParameterDeclarationExpression from the collection.

public:
 void Remove(System::CodeDom::CodeParameterDeclarationExpression ^ value);
public void Remove (System.CodeDom.CodeParameterDeclarationExpression value);
member this.Remove : System.CodeDom.CodeParameterDeclarationExpression -> unit
Public Sub Remove (value As CodeParameterDeclarationExpression)

Parameters

Exceptions

The specified object is not found in the collection.

Examples

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 = gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" );
collection->Remove( parameter );
// Removes the specified CodeParameterDeclarationExpression
// from the collection.
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(typeof(int), "testIntArgument");
collection.Remove( parameter );
' Removes the specified CodeParameterDeclarationExpression 
' from the collection.
Dim parameter As New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument")
collection.Remove(parameter)

Applies to