XmlReader.BaseURI 属性


当在派生类中被重写时,获取当前节点的基 URI。When overridden in a derived class, gets the base URI of the current node.

 abstract property System::String ^ BaseURI { System::String ^ get(); };
public abstract string BaseURI { get; }
public abstract string? BaseURI { get; }
member this.BaseURI : string
Public MustOverride ReadOnly Property BaseURI As String



当前节点的基 URI。The base URI of the current node.


在上一次异步操作完成之前调用了 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."


联网的 XML 文档包含使用各种 W3C 标准包含机制聚合的数据块,因此包含来自不同位置的节点。A networked XML document is comprised of chunks of data aggregated using various W3C standard inclusion mechanisms and therefore contains nodes that come from different places. DTD 实体就是这样一个例子,但这并不局限于 Dtd。DTD entities are an example of this, but this is not limited to DTDs. 基本 URI 告诉您这些节点的来源。The base URI tells you where these nodes came from. 如果返回的节点没有基 URI (例如,则从内存中的字符串) 中对其 String.Empty 进行分析。If there is no base URI for the nodes being returned (for example, they were parsed from an in-memory string), String.Empty is returned.