ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.IsReadOnly Property

定义

获取一个值,该值指示字典是否为只读。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; }
 ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of TKey).IsReadOnly

属性值

在所有情况下均为 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.

适用于