ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly 屬性

定義

取得值,這個值表示字典是否為唯讀。Gets a value that indicates whether the dictionary is read-only.

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

屬性值

Boolean

所有情況下都是 truetrue in all cases.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 ReadOnlyDictionary<TKey,TValue> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。It can be used only when the ReadOnlyDictionary<TKey,TValue> instance is cast to an ICollection<T> interface.

適用於