XsltContext.ResolveVariable(String, String) 方法

定义

当在派生类中重写时,解析变量引用并返回一个表示该变量的 IXsltContextVariableWhen overridden in a derived class, resolves a variable reference and returns an IXsltContextVariable representing the variable.

public:
 abstract System::Xml::Xsl::IXsltContextVariable ^ ResolveVariable(System::String ^ prefix, System::String ^ name);
public abstract System.Xml.Xsl.IXsltContextVariable ResolveVariable (string prefix, string name);
abstract member ResolveVariable : string * string -> System.Xml.Xsl.IXsltContextVariable
Public MustOverride Function ResolveVariable (prefix As String, name As String) As IXsltContextVariable

参数

prefix
String

在 XPath 表达式中显示的变量的前缀。The prefix of the variable as it appears in the XPath expression.

name
String

变量名。The name of the variable.

返回

IXsltContextVariable

一个 IXsltContextVariable,它在运行时表示该变量。An IXsltContextVariable representing the variable at runtime.

注解

执行时使用 IXsltContextVariable 可以获取变量的值。The IXsltContextVariable is used at execution time to get the value of the variable.

适用于