Mono Class Library: System.Collections.IDictionary Overview | Members

System.Collections.IDictionary.IsReadOnly Property

Gets a value indicating whether the current instance is read-only. [Edit]

public bool IsReadOnly { get; }

Value

true if the current instance is read-only; otherwise, false. [Edit]

Remarks

This property is read-only.

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

Operation
As described above.

The default of this property is false.

Note to Inheritors
Override this method, setting the value as true , to prevent the addition, removal, and modification of the elements in the current instance.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0