CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) Metodo

Definizione

Rimuove l'oggetto specificato CodeAttributeArgument dall'insieme.

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)

Parametri

value
CodeAttributeArgument

Oggetto CodeAttributeArgument da rimuovere dall'insieme.

Eccezioni

L'oggetto specificato non viene trovato nell'insieme.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Remove metodo per eliminare un CodeAttributeArgument oggetto da un oggetto 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)

Si applica a