Returns the prefix defined in the current namespace scope for the specified namespace URI.
- namespaceUri
- A string specifying the namespace URI.
A string containing the corresponding prefix, or string.Empty if the prefix is not found and ns is the default namespace, or null if no matching namespace URI is found in the current scope.
Type Reason ArgumentException ns is null or string.Empty.
Note:This method overrides XmlWriter.LookupPrefix(string).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0