ConcurrentDictionary<TKey,TValue>.IDictionary.IsReadOnly Property

Definition

获取一个值,该值指示 IDictionary<TKey,TValue> 是否为只读的。Gets a value that indicates whether the IDictionary<TKey,TValue> is read-only.

property bool System::Collections::IDictionary::IsReadOnly { bool get(); };
bool System.Collections.IDictionary.IsReadOnly { get; }
member this.System.Collections.IDictionary.IsReadOnly : bool
 ReadOnly Property IsReadOnly As Boolean Implements IDictionary.IsReadOnly

Property Value

Boolean

如果 true 是只读的,则为 IDictionary<TKey,TValue>;否则为 falsetrue if the IDictionary<TKey,TValue> is read-only; otherwise, false. 对于 ConcurrentDictionary<TKey,TValue>,该属性总是返回 falseFor ConcurrentDictionary<TKey,TValue>, this property always returns false.

Implements

Applies to

See also