Share via


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
XmlReader

the XmlReader in scope.

qualifiedString
String

the qualifiedName to check.

Returns

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

Exceptions

if qualifiedString is null.

Applies to