BindingContext.IsReadOnly 属性

定义

获取一个值,该值指示集合是否是只读的。Gets a value indicating whether the collection is read-only.

public:
 property bool IsReadOnly { bool get(); };
public bool IsReadOnly { get; }
member this.IsReadOnly : bool
Public ReadOnly Property IsReadOnly As Boolean

属性值

如果该集合为只读,则为 true;否则为 falsetrue if the collection is read-only; otherwise, false.

注解

此属性从 ICollection 派生,而且已重写此属性,使之始终返回 falseThis property is derived from ICollection, and is overridden to always return false.

适用于