CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) Metódus

Definíció

Eltávolítja a megadott CodeAttributeArgument objektumot a gyűjteményből.

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)

Paraméterek

value
CodeAttributeArgument

A CodeAttributeArgument gyűjteményből eltávolítandó objektum.

Kivételek

A megadott objektum nem található a gyűjteményben.

Példák

Az alábbi példa bemutatja, hogyan lehet a Remove metódussal törölni egy objektumot egy CodeAttributeArgumentCodeAttributeArgumentCollection objektumból.

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

A következőre érvényes: