CodeCommentStatementCollection.Remove(CodeCommentStatement) Yöntem

Tanım

Belirtilen CodeCommentStatement nesneyi koleksiyondan kaldırır.

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

Parametreler

value
CodeCommentStatement

CodeCommentStatement Koleksiyondan kaldırılacak nesne.

Özel durumlar

Belirtilen nesne koleksiyonda bulunamadı.

Örnekler

Aşağıdaki örnek, bir nesneyi 'den Removesilmek CodeCommentStatement için yönteminin nasıl kullanılacağını CodeCommentStatementCollection gösterir.

// Removes the specified CodeCommentStatement from the collection.
CodeCommentStatement comment = new CodeCommentStatement("Test comment");
collection.Remove( comment );
' Removes the specified CodeCommentStatement from the collection.
Dim comment As New CodeCommentStatement("Test comment")
collection.Remove(comment)

Şunlara uygulanır