ICollection(KeyValuePair(TKey, TValue)).IsReadO...
.NET Framework Class Library
Dictionary<(Of <(TKey, TValue>)>)..::.ICollection<(Of <(KeyValuePair<(Of <(TKey, TValue>)>)>)>)..::.IsReadOnly Property

Gets a value indicating whether the dictionary is read-only.

Namespace:  System.Collections.Generic
Assembly:  mscorlib (in mscorlib.dll)

Visual Basic (Declaration)
Private ReadOnly Property IsReadOnly As Boolean
    Implements ICollection(Of KeyValuePair(Of TKey, TValue)).IsReadOnly
Visual Basic (Usage)
Dim instance As Dictionary
Dim value As Boolean

value = CType(instance, ICollection(Of KeyValuePair(Of TKey, TValue))).IsReadOnly
C#
bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { get; }
Visual C++
private:
virtual property bool IsReadOnly {
    bool get () sealed = ICollection<KeyValuePair<TKey, TValue>>::IsReadOnly::get;
}
J#
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript
JScript does not support explicit interface implementations.

Property Value

Type: System..::.Boolean

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.

Implements

ICollection<(Of <(T>)>)..::.IsReadOnly

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

XNA Framework

Supported in: 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker