Share via


CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) Método

Definição

Remove o objeto CodeAttributeArgument especificado da coleção.

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

Parâmetros

value
CodeAttributeArgument

O objeto CodeAttributeArgument a ser removido da coleção.

Exceções

O objeto especificado não foi localizado na coleção.

Exemplos

O exemplo a seguir demonstra como usar o Remove método para excluir um CodeAttributeArgument objeto de um CodeAttributeArgumentCollection.

// Removes the specified CodeAttributeArgument from the collection.
CodeAttributeArgument^ argument = gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) );
collection->Remove( argument );
// Removes the specified CodeAttributeArgument from the collection.
CodeAttributeArgument argument = new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true));
collection.Remove( argument );
' Removes the specified CodeAttributeArgument from the collection.
Dim argument As New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True))
collection.Remove(argument)

Aplica-se a