CodeAttributeArgumentCollection.Remove(CodeAttributeArgument) 方法

定义

从集合中移除指定的 CodeAttributeArgument 对象。

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

参数

value
CodeAttributeArgument

要从集合中移除的 CodeAttributeArgument 对象。

例外

未在集合中找到指定的对象。

示例

以下示例演示如何使用 Remove 方法从 CodeAttributeArgumentCollection中删除 CodeAttributeArgument 对象。

// Removes the specified CodeAttributeArgument from the collection.
CodeAttributeArgument^ argument = gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) );
collection->Remove( argument );
// Removes the specified CodeAttributeArgument from the collection.
CodeAttributeArgument argument = new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true));
collection.Remove( argument );
' Removes the specified CodeAttributeArgument from the collection.
Dim argument As New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True))
collection.Remove(argument)

适用于