XsltContext.ResolveFunction(String, String, XPathResultType[]) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,會解析函式參考並傳回表示函式的 IXsltContextFunction。 IXsltContextFunction 用於在執行時間取得函式的傳回值。
public:
abstract System::Xml::Xsl::IXsltContextFunction ^ ResolveFunction(System::String ^ prefix, System::String ^ name, cli::array <System::Xml::XPath::XPathResultType> ^ ArgTypes);
C#
public abstract System.Xml.Xsl.IXsltContextFunction ResolveFunction (string prefix, string name, System.Xml.XPath.XPathResultType[] ArgTypes);
abstract member ResolveFunction : string * string * System.Xml.XPath.XPathResultType[] -> System.Xml.Xsl.IXsltContextFunction
Public MustOverride Function ResolveFunction (prefix As String, name As String, ArgTypes As XPathResultType()) As IXsltContextFunction
- prefix
- String
函式出現在 XPath 運算式時所具有的前置詞。
- name
- String
函式的名稱。
- ArgTypes
- XPathResultType[]
要加以解析之函式的引數型別陣列。 這讓您可以選取具有相同名稱的方法 (例如,多載方法)。
表示函式的 IXsltContextFunction。
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 2.0, 2.1 |