CollectionBase.System.Collections.IList.IsReadOnly Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

Private ReadOnly Property IsReadOnly As Boolean Implements _   IList.IsReadOnly
[C#]
bool IList.IsReadOnly {get;}
[C++]
private: __property bool
   System::Collections::IList::get_IsReadOnly();
[JScript]
private function get IList.IsReadOnly() : Boolean;

Property Value

true if the CollectionBase is read-only; otherwise, false. The default is false.

Implements

IList.IsReadOnly

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CollectionBase Class | CollectionBase Members | System.Collections Namespace