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)

適用対象