CodeNamespaceCollection.Remove(CodeNamespace) Yöntem

Tanım

Belirtilen CodeNamespace nesneyi koleksiyondan kaldırır.

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)

Parametreler

value
CodeNamespace

CodeNamespace koleksiyondan kaldırılacak.

Özel durumlar

Belirtilen nesne koleksiyonda bulunamadı.

Örnekler

Aşağıdaki örnekte, bir nesnesinden Removesilmek CodeNamespace için yönteminin nasıl kullanılacağı CodeNamespaceCollection gösterilmektedir.

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

Şunlara uygulanır