This documentation is archived and is not being maintained.

Array.IsReadOnly Property

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

[Visual Basic]
Public Overridable ReadOnly Property IsReadOnly As Boolean  _
   Implements IList.IsReadOnly
public virtual bool IsReadOnly {get;}
public: __property virtual bool get_IsReadOnly();
public function get IsReadOnly() : Boolean;

Property Value

This property is always false for all arrays.




Array implements the IsReadOnly property because it is required by the System.Collections.IList interface.

If you require a read-only collection, use a System.Collections class that implements the System.Collections.IList interface.

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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Array Class | Array Members | System Namespace | System.Collections.IList | System.Collections