StringCollection.IList.IsReadOnly プロパティ
定義
StringCollection オブジェクトが読み取り専用かどうかを示す値を取得します。Gets a value indicating whether the StringCollection object is read-only.
property bool System::Collections::IList::IsReadOnly { bool get(); };
bool System.Collections.IList.IsReadOnly { get; }
member this.System.Collections.IList.IsReadOnly : bool
ReadOnly Property IsReadOnly As Boolean Implements IList.IsReadOnly
プロパティ値
StringCollection オブジェクトが読み取り専用の場合は true
。それ以外の場合は false
。true
if the StringCollection object is read-only; otherwise, false
. 既定では、 false
です。The default is false
.
実装
注釈
読み取り専用のコレクションでは、コレクション作成後に要素の追加、削除、または変更はできません。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.
このプロパティ値を取得することは、O(1) 操作になります。Retrieving the value of this property is an O(1) operation.