Returns the namespace URI associated with a given prefix.
[Visual Basic] MustOverride Public Function GetNamespaceOfPrefix( _ ByVal prefix As String _ ) As String [C#] public abstract string GetNamespaceOfPrefix( string prefix ); [C++] public: virtual String* GetNamespaceOfPrefix( String* prefix ) = 0; [JScript] public abstract function GetNamespaceOfPrefix( prefix : String ) : String;
The namespace URI associated with the given prefix at the current position in the XML input stream, or null if no declaration of the given prefix is in scope.
Exception Type | Condition |
---|---|
ArgumentException | If prefix is null or an empty string. |
This method returns the namespace URI that is associated with the given prefix at the current position in the XML input stream. If the reader is positioned on a start tag, the resolution process includes prefixes that are declared in that start tag.