Share via


XmlQueryContext.GetDataSource(String, String) 方法

定义

从用户提供的 中获取 由 uriRelativeuriBaseT:System.Xml.XmlResolver 指定的数据源。

此 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 类型的值。

uriBase
String

一个 string 类型的值。

返回

XPathNavigator 类的实例。

注解

如果未找到任何数据源,则引发异常。

适用于