XmlUtil.ResolveQName(XmlReader, String) Method

Definition

Determines if the prefix on a name maps to a namespace that is in scope the reader.

public static System.Xml.XmlQualifiedName ResolveQName (System.Xml.XmlReader reader, string qualifiedString);
static member ResolveQName : System.Xml.XmlReader * string -> System.Xml.XmlQualifiedName
Public Shared Function ResolveQName (reader As XmlReader, qualifiedString As String) As XmlQualifiedName

Parameters

reader
System.Xml.XmlReader

the System.Xml.XmlReader in scope.

qualifiedString
System.String

the qualifiedName to check.

Returns

System.Xml.XmlQualifiedName

a System.Xml.XmlQualifiedName with the namespace that was in scope. If the prefix was not in scope, the namespace will be null.

Exceptions

System.ArgumentNullException

if qualifiedString is null.

Applies to