SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly Property
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.
Gets a value indicating whether the ICollection<T> is read-only.
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
Property Value
true
if the ICollection<T> is read-only; otherwise, false
. In the default implementation of SortedDictionary<TKey,TValue>.KeyCollection, this property always returns false
.
Implements
Remarks
A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
Getting the value of this property is an O(1) operation.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för