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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.