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

定義

取得值,這個值表示字典是否為唯讀。

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

屬性值

所有情況下都是 true

實作

備註

這個成員是明確介面成員實作, 只有在 ReadOnlyDictionary<TKey,TValue> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於