System.Xml.XmlNode.GetNamespaceOfPrefix Method

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

Syntax

public virtual string GetNamespaceOfPrefix (string prefix)

Parameters

prefix
The prefix whose namespace URI you want to find.

Returns

The namespace URI of the specified prefix.

Remarks

This method is a Microsoft extension to the Document Object Model (DOM).

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