CodeTypeReferenceCollection.Remove(CodeTypeReference) Metod

Definition

Tar bort den angivna CodeTypeReference från samlingen.

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)

Parametrar

value
CodeTypeReference

Att CodeTypeReference ta bort från samlingen.

Undantag

Det angivna objektet hittades inte i samlingen.

Exempel

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

Gäller för