Windows Dev Center

XmlQualifiedName Class

Represents an XML qualified name.

System.Object
  System.Xml.XmlQualifiedName

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public class XmlQualifiedName

The XmlQualifiedName type exposes the following members.

  NameDescription
Public methodXmlQualifiedName()Initializes a new instance of the XmlQualifiedName class.
Public methodXmlQualifiedName(String)Initializes a new instance of the XmlQualifiedName class with the specified name.
Public methodXmlQualifiedName(String, String)Initializes a new instance of the XmlQualifiedName class with the specified name and namespace.
Top

  NameDescription
Public propertyIsEmptyGets a value indicating whether the XmlQualifiedName is empty.
Public propertyNameGets a string representation of the qualified name of the XmlQualifiedName.
Public propertyNamespaceGets a string representation of the namespace of the XmlQualifiedName.
Top

  NameDescription
Public methodEqualsDetermines whether the specified XmlQualifiedName object is equal to the current XmlQualifiedName object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for the XmlQualifiedName. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString()Returns the string value of the XmlQualifiedName. (Overrides Object.ToString().)
Public methodStatic memberToString(String, String)Returns the string value of the XmlQualifiedName.
Top

  NameDescription
Public operatorStatic memberEqualityCompares two XmlQualifiedName objects.
Public operatorStatic memberInequalityCompares two XmlQualifiedName objects.
Top

  NameDescription
Public fieldStatic memberEmptyProvides an empty XmlQualifiedName.
Top

An XML qualified name is a namespace qualified local name in the format of namespace:localname.

Because prefixes are only required when XML is persisted or read, they are irrelevant for XmlQualifiedName objects. This class assumes that prefixes are irrelevant. It is the responsibility of the user to ensure the local name does not contain a ":".

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2015 Microsoft