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.
Syntax
public virtual
string GetPrefixOfNamespace (
string namespaceURI)
Parameters
- namespaceURI
-
The namespace URI whose prefix you want to find.
Returns
The prefix for the specified namespace URI.
Remarks
Requirements
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0