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

System.Xml.XmlWriter.LookupPrefix Method

Retrieves the prefix defined in the current namespace scope for the specified namespace URI. [Edit]

public abstract string LookupPrefix (string ns)

Parameters

ns
A string specifying the namespace URI. [Edit]

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. [Edit]

Exceptions

TypeReason
ArgumentExceptionns is null or string.Empty. [Edit]

Remarks

Operation
As described above.

Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

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