CodeNamespaceCollection.Remove(CodeNamespace) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Eltávolítja a megadott CodeNamespace objektumot a gyűjteményből.
public:
void Remove(System::CodeDom::CodeNamespace ^ value);
public void Remove(System.CodeDom.CodeNamespace value);
member this.Remove : System.CodeDom.CodeNamespace -> unit
Public Sub Remove (value As CodeNamespace)
Paraméterek
- value
- CodeNamespace
A CodeNamespace gyűjteményből eltávolítandó.
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 CodeNamespaceCodeNamespaceCollection objektumból.
// Removes the specified CodeNamespace from the collection.
CodeNamespace namespace_ = new CodeNamespace("TestNamespace");
collection.Remove( namespace_ );
' Removes the specified CodeNamespace from the collection.
Dim namespace_ As New CodeNamespace("TestNamespace")
collection.Remove(namespace_)