XmlNode.IsReadOnly 属性

定义

获取指示节点是否只读的值。Gets a value indicating whether the node is read-only.

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

属性值

Boolean

true 如果节点是只读的,则为;否则为 falsetrue if the node is read-only; otherwise, false.

注解

只读节点是指无法更改其属性、特性或子节点的节点。A read-only node is one whose properties, attributes, or child nodes cannot be changed. 可以从树中删除只读节点并将其插入到其他位置。You can remove a read-only node from the tree and insert it somewhere else. 例如,实体节点始终为只读。For example, Entity nodes are always read-only.

此属性是文档对象模型 (DOM) 的 Microsoft 扩展。This property is a Microsoft extension to the Document Object Model (DOM).

适用于