Share via


CodeStatementCollection.Remove(CodeStatement) Yöntem

Tanım

Belirtilen CodeStatement nesneyi koleksiyondan kaldırır.

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

Parametreler

value
CodeStatement

CodeStatement koleksiyondan kaldırılacak.

Özel durumlar

Belirtilen nesne koleksiyonda bulunamadı.

Örnekler

Aşağıdaki örnekte, bir nesnesinden CodeStatementCollectionsilmek CodeStatement için yönteminin nasıl kullanılacağı Remove gösterilmektedir.

// Removes the specified CodeStatement from the collection.
collection->Remove( testStatement );
// Removes the specified CodeStatement from the collection.
collection.Remove( testStatement );
' Removes the specified CodeStatement from the collection.
collection.Remove(testStatement)

Şunlara uygulanır