CodeParameterDeclarationExpressionCollection.Remove メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した CodeParameterDeclarationExpression をコレクションから削除します。
public:
void Remove(System::CodeDom::CodeParameterDeclarationExpression ^ value);
public void Remove(System.CodeDom.CodeParameterDeclarationExpression value);
member this.Remove : System.CodeDom.CodeParameterDeclarationExpression -> unit
Public Sub Remove (value As CodeParameterDeclarationExpression)
パラメーター
コレクションから削除する CodeParameterDeclarationExpression 。
例外
指定したオブジェクトがコレクション内に見つかりません。
例
次の例では、Remove メソッドを使用して、CodeParameterDeclarationExpressionからCodeParameterDeclarationExpressionCollection オブジェクトを削除する方法を示します。
// Removes the specified CodeParameterDeclarationExpression
// from the collection.
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(typeof(int), "testIntArgument");
collection.Remove( parameter );
' Removes the specified CodeParameterDeclarationExpression
' from the collection.
Dim parameter As New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument")
collection.Remove(parameter)