GetPrefixOfNamespace()

XmlNode::GetPrefixOfNamespace(String) method

Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration.

virtual String System::Xml::XmlNode::GetPrefixOfNamespace(String namespaceURI)

Arguments

ParameterTypeDescription
namespaceURIStringThe namespace URI whose prefix you want to find.

Return Value

The prefix for the specified namespace URI.

See Also