Dictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.IsReadOnly Egenskap

Definition

Hämtar ett värde som anger om är ICollection<T> skrivskyddat.

property bool System::Collections::Generic::ICollection<TValue>::IsReadOnly { bool get(); };
bool System.Collections.Generic.ICollection<TValue>.IsReadOnly { get; }
member this.System.Collections.Generic.ICollection<TValue>.IsReadOnly : bool
 ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of TValue).IsReadOnly

Egenskapsvärde

true om är ICollection<T> skrivskyddad, annars false. I standardimplementeringen av Dictionary<TKey,TValue>.ValueCollectionreturnerar trueden här egenskapen alltid .

Implementeringar

Kommentarer

En samling som är skrivskyddad tillåter inte tillägg, borttagning eller ändring av element när samlingen har skapats.

Att hämta värdet för den här egenskapen är en O(1)-åtgärd.

Gäller för