Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly Property

定义

获取一个值,该值指示字典是否为只读。Gets a value that indicates whether the dictionary is read-only.

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

属性值

如果 true 是只读的,则为 ICollection<T>;否则为 falsetrue if the ICollection<T> is read-only; otherwise, false. Dictionary<TKey,TValue> 的默认实现中,此属性始终返回 falseIn the default implementation of Dictionary<TKey,TValue>, this property always returns false.

实现

适用于