XmlReader.CanResolveEntity XmlReader.CanResolveEntity XmlReader.CanResolveEntity XmlReader.CanResolveEntity Property

定义

获取一个值,该值指示此读取器是否可以分析和解析实体。Gets a value indicating whether this reader can parse and resolve entities.

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

属性值

如果此读取器可以分析和解析实体,则为 true;否则为 falsetrue if the reader can parse and resolve entities; otherwise, false.

异常

在上一次异步操作完成之前调用了 XmlReader 方法。An XmlReader method was called before a previous asynchronous operation finished. 在此情况下,会引发 InvalidOperationException 并显示消息“异步操作已在进行中。”In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

注解

对于不支持 DTD false信息的XmlReader实现,此属性始终返回。This property always returns false for implementations of XmlReader that do not support DTD information. 在这种情况下ResolveEntity ,调用会引发异常。In this case, calling ResolveEntity throws an exception.

适用于