語言

CodeStatementCollection.Remove(CodeStatement) 方法

定義

從集合中移除指定的 CodeStatement 物件。

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)

參數

value
CodeStatement

從收藏中移除。CodeStatement

例外狀況

指定的物件不在集合中。

範例

以下範例示範如何使用該Remove方法從 中刪除CodeStatement物件。CodeStatementCollection

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

適用於