Partager via


CodeTypeReferenceCollection.Remove(CodeTypeReference) Méthode

Définition

Supprime l’objet CodeTypeReference spécifié de la 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)

Paramètres

value
CodeTypeReference

CodeTypeReference à supprimer de la collection.

Exceptions

L'objet spécifié est introuvable dans la collection.

Exemples

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

S’applique à