次の方法で共有


Array.IsReadOnly プロパティ

Array が読み取り専用かどうかを示す値を取得します。

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

プロパティ値

このプロパティは、すべての配列に対して常に false です。

実装

IList.IsReadOnly

解説

Array は、 System.Collections.IList インターフェイスに必要な IsReadOnly プロパティを実装します。

読み取り専用コレクションが必要な場合は、 System.Collections.IList インターフェイスを実装する System.Collections クラスを使用します。

読み取り専用の配列では、配列を作成した後で要素の追加、削除、または変更はできません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Array クラス | Array メンバ | System 名前空間 | System.Collections.IList | System.Collections