語言

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

定義

取得值,這個值表示集合是否為唯讀。

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

屬性值

true 無論哪種情況。

實作

備註

此成員為明確介面成員實作。 它只能在實 ReadOnlyDictionary<TKey,TValue>.ValueCollection 例投射到 ICollection<T> 介面時使用。

適用於