CodeParameterDeclarationExpressionCollection.Remove 方法

定义

从集合中移除指定的 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)

参数

例外

集合中找不到指定的对象。

示例

下面的示例演示如何使用该方法从 <a0/> 中删除对象。

// 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)

适用于