CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) Método

Definição

Remove o objeto especificado CodeAttributeArgument 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 CodeAttributeArgument objeto a remover da coleção.

Exceções

O objeto especificado não se encontra na coleção.

Exemplos

O exemplo seguinte demonstra como usar o Remove método para eliminar um CodeAttributeArgument objeto de um CodeAttributeArgumentCollection.

// 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