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>,才能使用它。

适用于