CodeTypeReferenceCollection.Remove(CodeTypeReference) Metódus

Definíció

Eltávolítja a megadottt CodeTypeReference a gyűjteményből.

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)

Paraméterek

value
CodeTypeReference

A CodeTypeReference gyűjteményből eltávolítandó.

Kivételek

A megadott objektum nem található a gyűjteményben.

Példák

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

A következőre érvényes: