SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly Propriété

Définition

Obtient une valeur indiquant si ICollection<T> est en lecture seule.

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

Valeur de propriété

true si ICollection<T> est en lecture seule ; sinon, false. Dans l'implémentation par défaut de SortedDictionary<TKey,TValue>.KeyCollection, cette propriété retourne toujours false.

Implémente

Remarques

Une collection en lecture seule n’autorise pas l’ajout, la suppression ou la modification d’éléments après sa création.

L’obtention de la valeur de cette propriété est une opération O(1).

S’applique à