Mono Class Library: System.Xml.XmlTextWriter Overview | Members

System.Xml.XmlTextWriter.LookupPrefix Method

Returns the prefix defined in the current namespace scope for the specified namespace URI.

public override string LookupPrefix (string namespaceUri)

Parameters

namespaceUri
A string specifying the namespace URI.

Returns

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.

Exceptions

TypeReason
ArgumentExceptionns is null or string.Empty.

Remarks

Note:

This method overrides XmlWriter.LookupPrefix(string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0