CodeTypeReferenceCollection.Remove(CodeTypeReference) 方法

定义

从集合中移除指定的 CodeTypeReference

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

参数

value
CodeTypeReference

要从该集合中移除的 CodeTypeReference

例外

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

示例

// Removes the specified CodeTypeReference from the collection.
CodeTypeReference^ reference = gcnew CodeTypeReference( bool::typeid );
collection->Remove( reference );
// Removes the specified CodeTypeReference from the collection.
CodeTypeReference reference = new CodeTypeReference(typeof(bool));
collection.Remove( reference );
' Removes the specified CodeTypeReference from the collection.
Dim reference As New CodeTypeReference(GetType(Boolean))
collection.Remove(reference)

适用于