CodeTypeReferenceCollection.Remove(CodeTypeReference) Method

Definition

Entfernt das angegebene CodeTypeReference-Objekt aus der Collection.Removes the specified CodeTypeReference from the collection.

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)

Parameters

value
CodeTypeReference

Die aus der Auflistung zu entfernende CodeTypeReference.The CodeTypeReference to remove from the collection.

Exceptions

Das angegebene Objekt wurde nicht in der Auflistung gefunden.The specified object is not found in the collection.

Examples

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

Applies to