CodeTypeDeclarationCollection.Remove(CodeTypeDeclaration) Metoda

Definice

Odebere zadaný CodeTypeDeclaration objekt z kolekce.

public:
 void Remove(System::CodeDom::CodeTypeDeclaration ^ value);
public void Remove (System.CodeDom.CodeTypeDeclaration value);
member this.Remove : System.CodeDom.CodeTypeDeclaration -> unit
Public Sub Remove (value As CodeTypeDeclaration)

Parametry

value
CodeTypeDeclaration

Chcete-li CodeTypeDeclaration odebrat z kolekce.

Výjimky

Zadaný objekt není v kolekci nalezen.

Příklady

Následující příklad ukazuje, jak použít metodu Remove k odstranění objektu CodeTypeDeclaration z objektu CodeTypeDeclarationCollection.

// Removes the specified CodeTypeDeclaration from the collection.
CodeTypeDeclaration^ declaration = gcnew CodeTypeDeclaration( "TestType" );
collection->Remove( declaration );
// Removes the specified CodeTypeDeclaration from the collection.
CodeTypeDeclaration declaration = new CodeTypeDeclaration("TestType");
collection.Remove( declaration );
' Removes the specified CodeTypeDeclaration from the collection.
Dim declaration As New CodeTypeDeclaration("TestType")
collection.Remove(declaration)

Platí pro