Freigeben über


CodeAttributeArgumentCollection.Remove-Methode

Entfernt das angegebene CodeAttributeArgument aus der Auflistung.

Namespace: System.CodeDom
Assembly: System (in system.dll)

Syntax

'Declaration
Public Sub Remove ( _
    value As CodeAttributeArgument _
)
'Usage
Dim instance As CodeAttributeArgumentCollection
Dim value As CodeAttributeArgument

instance.Remove(value)
public void Remove (
    CodeAttributeArgument value
)
public:
void Remove (
    CodeAttributeArgument^ value
)
public void Remove (
    CodeAttributeArgument value
)
public function Remove (
    value : CodeAttributeArgument
)

Parameter

Ausnahmen

Ausnahmetyp Bedingung

ArgumentException

Das angegebene Objekt wurde nicht in der Auflistung gefunden.

Beispiel

' Removes the specified CodeAttributeArgument from the collection.
Dim argument As New CodeAttributeArgument("Test Boolean Argument", New 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.
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(System.Convert.ToString(true)));
collection.Remove(argument);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

CodeAttributeArgumentCollection-Klasse
CodeAttributeArgumentCollection-Member
System.CodeDom-Namespace