CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) Método

Definición

Quita el objeto especificado CodeAttributeArgument de la colección.

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

Objeto CodeAttributeArgument que se va a quitar de la colección.

Excepciones

El objeto especificado no se encuentra en la colección.

Ejemplos

En el ejemplo siguiente se muestra cómo usar el Remove método para eliminar un CodeAttributeArgument objeto de .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)

Se aplica a