System::Xml::XPath::XPathExpression::Compile Methode

XPathExpression::Compile(const String&) method

Kompiliert den angegebenen XPath-Ausdruck und gibt ein XPathExpression-Objekt zurück, das den XPath-Ausdruck darstellt.

static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath)
ParameterTypBeschreibung
xpathconst String&Ein XPath-Ausdruck.

ReturnValue

Ein XPathExpression-Objekt.

Siehe auch

XPathExpression::Compile(const String&, const SharedPtr<IXmlNamespaceResolver>&) method

Kompiliert den angegebenen XPath-Ausdruck, wobei das angegebene IXmlNamespaceResolver-Objekt für die Namensauflösung verwendet wird, und gibt ein XPathExpression-Objekt zurück, das den XPath-Ausdruck darstellt.

static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath, const SharedPtr<IXmlNamespaceResolver> &nsResolver)
ParameterTypBeschreibung
xpathconst String&Ein XPath-Ausdruck.
nsResolverconst SharedPtr<IXmlNamespaceResolver>&Ein Objekt, das das IXmlNamespaceResolver-Interface für die Namensauflösung implementiert.

ReturnValue

Ein XPathExpression-Objekt.

Siehe auch