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

定義

取得值,指出集合是否為唯讀。

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,否則為 false

實作

備註

擷取這個屬性的值是一種 O(1) 運算。

適用於