System::Xml::XPath::XPathNavigator::LookupNamespace 方法

XPathNavigator::LookupNamespace method

返回指定前缀的命名空间 URI。

String System::Xml::XPath::XPathNavigator::LookupNamespace(const String &prefix) override
参数类型描述
prefixconst String&要解析其命名空间 URI 的前缀。若要匹配默认命名空间,请传入 String::Empty

ReturnValue

一个包含指定命名空间前缀所分配的命名空间 URI 的 String;如果未为指定前缀分配命名空间 URI,则为 nullptr。返回的 String 已原子化。

另见