Gets a value indicating whether the dictionary is read-only.
Private ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).IsReadOnly
Dim instance As Dictionary Dim value As Boolean value = CType(instance, ICollection(Of KeyValuePair(Of TKey, TValue))).IsReadOnly
bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { get; }
private: virtual property bool IsReadOnly { bool get () sealed = ICollection<KeyValuePair<TKey, TValue>>::IsReadOnly::get; }
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript does not support explicit interface implementations.
true if the ICollection<(Of <(T>)>) is read-only; otherwise, false. In the default implementation of Dictionary<(Of <(TKey, TValue>)>), this property always returns false.
A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
A collection that is read-only is simply a collection with a wrapper that prevents modifying the collection; therefore, if changes are made to the underlying collection, the read-only collection reflects those changes.
Getting the value of this property is an O(1) operation.
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360