Rediger

Del via


PageTheme.XPath Method

Definition

Provides support for parsing and evaluating an XPath data-binding expression in theme skin files.

Overloads

XPath(String)

Evaluates an XPath data-binding expression.

XPath(String, String)

Evaluates an XPath data-binding expression using the specified format string to display the result.

XPath(String, IXmlNamespaceResolver)

Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution.

XPath(String, String, IXmlNamespaceResolver)

Uses the XPath(String, String, IXmlNamespaceResolver) method of the Page control that the instance of the PageTheme class is associated with to evaluate an XPath data-binding expression.

XPath(String)

Evaluates an XPath data-binding expression.

protected:
 System::Object ^ XPath(System::String ^ xPathExpression);
protected object XPath (string xPathExpression);
member this.XPath : string -> obj
Protected Function XPath (xPathExpression As String) As Object

Parameters

xPathExpression
String

The XPath expression to evaluate. For details, see XPathBinder.

Returns

An object that results from the evaluation of the data-binding xPathExpression.

Remarks

The XPath method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.

See also

Applies to

XPath(String, String)

Evaluates an XPath data-binding expression using the specified format string to display the result.

protected:
 System::String ^ XPath(System::String ^ xPathExpression, System::String ^ format);
protected string XPath (string xPathExpression, string format);
member this.XPath : string * string -> string
Protected Function XPath (xPathExpression As String, format As String) As String

Parameters

xPathExpression
String

The XPath expression to evaluate. For details, see XPathBinder.

format
String

A .NET Framework format string to apply to the result.

Returns

A string that results from the evaluation of the data-binding expression and conversion to a string type.

Remarks

The XPath method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.

See also

Applies to

XPath(String, IXmlNamespaceResolver)

Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution.

protected:
 System::Object ^ XPath(System::String ^ xPathExpression, System::Xml::IXmlNamespaceResolver ^ resolver);
protected object XPath (string xPathExpression, System.Xml.IXmlNamespaceResolver resolver);
member this.XPath : string * System.Xml.IXmlNamespaceResolver -> obj
Protected Function XPath (xPathExpression As String, resolver As IXmlNamespaceResolver) As Object

Parameters

xPathExpression
String

The XPath expression to evaluate. For details, see XPathBinder.

resolver
IXmlNamespaceResolver

A set of prefix and namespace mappings used for namespace resolution.

Returns

An object that results from the evaluation of the data-binding xPathExpression.

Remarks

The XPath method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.

See also

Applies to

XPath(String, String, IXmlNamespaceResolver)

Uses the XPath(String, String, IXmlNamespaceResolver) method of the Page control that the instance of the PageTheme class is associated with to evaluate an XPath data-binding expression.

protected:
 System::String ^ XPath(System::String ^ xPathExpression, System::String ^ format, System::Xml::IXmlNamespaceResolver ^ resolver);
protected string XPath (string xPathExpression, string format, System.Xml.IXmlNamespaceResolver resolver);
member this.XPath : string * string * System.Xml.IXmlNamespaceResolver -> string
Protected Function XPath (xPathExpression As String, format As String, resolver As IXmlNamespaceResolver) As String

Parameters

xPathExpression
String

The XPath expression to evaluate. For details, see XPathBinder.

format
String

A .NET Framework format string to apply to the result.

resolver
IXmlNamespaceResolver

A set of prefix and namespace mappings used for namespace resolution.

Returns

A string that results from the evaluation of the data-binding expression and conversion to a string type.

Remarks

The XPath method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.

See also

Applies to