Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly 屬性

定義

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

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; }
member this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IsReadOnly : bool
 ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).IsReadOnly

屬性值

如果 true 是唯讀,則為 ICollection<T>,否則為 false。 在 Dictionary<TKey,TValue> 的預設實作中,這個屬性一律會傳回 false

實作

適用於