XmlQueryContext.GetDataSource(String, String) 方法

定义

从用户提供的 T:System.Xml.XmlResolver 获取由 uriRelativeuriBase 指定的数据源。Gets the data source specified by the uriRelative and uriBase from the T:System.Xml.XmlResolver that the user provided.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Xml::XPath::XPathNavigator ^ GetDataSource(System::String ^ uriRelative, System::String ^ uriBase);
public System.Xml.XPath.XPathNavigator GetDataSource (string uriRelative, string uriBase);
member this.GetDataSource : string * string -> System.Xml.XPath.XPathNavigator
Public Function GetDataSource (uriRelative As String, uriBase As String) As XPathNavigator

参数

uriRelative
String

一个 string 类型的值。A value of type string.

uriBase
String

一个 string 类型的值。A value of type string.

返回

XPathNavigator

XPathNavigator 类的实例。An instance of the XPathNavigator class.

注解

如果未找到数据源,则引发异常。Throws an exception if no data source was found.

适用于