Uredi

Deli z drugimi prek


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

Definition

Gets a value indicating whether the ICollection<T> is read-only.

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

Property Value

true if the ICollection<T> is read-only; otherwise, false. In the default implementation of Dictionary<TKey,TValue>.ValueCollection, this property always returns true.

Implements

Remarks

A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.

Retrieving the value of this property is an O(1) operation.

Applies to