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

XPathNavigator::LookupNamespace method

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

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

ReturnValue

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

另见