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方法從 中刪除CodeAttributeArgument物件。CodeAttributeArgumentCollection

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

適用於