CodeParameterDeclarationExpressionCollection.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The CodeParameterDeclarationExpression to remove from the collection.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.