Dictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all items from the ICollection<T>. This implementation always throws NotSupportedException.
virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear ();
abstract member System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TValue).Clear
Implements
Exceptions
Always thrown.
Remarks
Count is set to zero, and references to other objects from elements of the collection are also released.
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir