CodeExpressionCollection.Remove(CodeExpression) 方法

定义

从集合中删除指定的 CodeExpression 对象。

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

参数

value
CodeExpression

CodeExpression 从集合中移除的对象。

例外

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

示例

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

// Removes the specified CodeExpression from the collection.
CodeExpression expression = new CodePrimitiveExpression(true);
collection.Remove( expression );
' Removes the specified CodeExpression from the collection.
Dim expression = New CodePrimitiveExpression(True)
collection.Remove(expression)

适用于