C# 클래스 System.Xml.Xsl.Runtime.XmlQueryContext

파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
GetDataSource ( string uriRelative, string uriBase ) : XPathNavigator

Fetch the data source specified by "uriRelative" and "uriBase" from the XmlResolver that the user provided. If the resolver returns a stream or reader, create an instance of XPathDocument. If the resolver returns an XPathNavigator, return the navigator. Throw an exception if no data source was found.

GetLateBoundObject ( string namespaceUri ) : object

Return the extension object that is mapped to the specified namespace, or null if no object is mapped.

GetParameter ( string localName, string namespaceUri ) : object

Get a named parameter from the external argument list. Return null if no argument list was provided, or if there is no parameter by that name.

InvokeXsltLateBoundFunction ( string name, string namespaceUri, IList args ) : IList

Get a late-bound extension object from the external argument list. Bind to a method on the object and invoke it, passing "args" as arguments.

LateBoundFunctionExists ( string name, string namespaceUri ) : bool

Return true if the late bound object identified by "namespaceUri" contains a method that matches "name".

비공개 메소드들

메소드 설명
ConstructDocument ( object dataSource, string uriRelative, Uri uriResolved ) : XPathNavigator

Ensure that "dataSource" is cached as an XPathDocument and return a navigator over the document.

XmlQueryContext ( XmlQueryRuntime runtime, object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, System.Xml.Xsl.Runtime.WhitespaceRuleLookup wsRules ) : System

This constructor is internal so that external users cannot construct it (and therefore we do not have to test it separately).

메소드 상세

GetDataSource() 공개 메소드

Fetch the data source specified by "uriRelative" and "uriBase" from the XmlResolver that the user provided. If the resolver returns a stream or reader, create an instance of XPathDocument. If the resolver returns an XPathNavigator, return the navigator. Throw an exception if no data source was found.
public GetDataSource ( string uriRelative, string uriBase ) : XPathNavigator
uriRelative string
uriBase string
리턴 System.Xml.XPath.XPathNavigator

GetLateBoundObject() 공개 메소드

Return the extension object that is mapped to the specified namespace, or null if no object is mapped.
public GetLateBoundObject ( string namespaceUri ) : object
namespaceUri string
리턴 object

GetParameter() 공개 메소드

Get a named parameter from the external argument list. Return null if no argument list was provided, or if there is no parameter by that name.
public GetParameter ( string localName, string namespaceUri ) : object
localName string
namespaceUri string
리턴 object

InvokeXsltLateBoundFunction() 공개 메소드

Get a late-bound extension object from the external argument list. Bind to a method on the object and invoke it, passing "args" as arguments.
public InvokeXsltLateBoundFunction ( string name, string namespaceUri, IList args ) : IList
name string
namespaceUri string
args IList
리턴 IList

LateBoundFunctionExists() 공개 메소드

Return true if the late bound object identified by "namespaceUri" contains a method that matches "name".
public LateBoundFunctionExists ( string name, string namespaceUri ) : bool
name string
namespaceUri string
리턴 bool