語言

ReadOnlyCollectionBuilder<T>.ICollection<T>.IsReadOnly 屬性

定義

取得值,指出 ICollection<T> 是否為唯讀。

property bool System::Collections::Generic::ICollection<T>::IsReadOnly { bool get(); };
bool System.Collections.Generic.ICollection<T>.IsReadOnly { get; }
member this.System.Collections.Generic.ICollection<T>.IsReadOnly : bool
 ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of T).IsReadOnly

屬性值

true若 為ICollection<T>唯讀;否則 。 false

實作

備註

唯讀的集合在建立集合後不允許新增、移除或修改元素。

適用於