XmlQualifiedName XmlQualifiedName XmlQualifiedName XmlQualifiedName Class

定义

表示 XML 限定名。Represents an XML qualified name.

public ref class XmlQualifiedName
[System.Serializable]
public class XmlQualifiedName
type XmlQualifiedName = class
Public Class XmlQualifiedName
继承
XmlQualifiedNameXmlQualifiedNameXmlQualifiedNameXmlQualifiedName
属性

示例

有关使用XmlQualifiedName类的示例, 请参见XmlSchemaAllFor an example using the XmlQualifiedName class, see XmlSchemaAll.

注解

XML 限定名称是采用格式的命名空间限定的namespace:localname本地名称。An XML qualified name is a namespace qualified local name in the format of namespace:localname.

由于前缀只在保留或读取 XML 时需要,因此它们对于 XmlQualifiedName 对象是不相关的。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 ":".

构造函数

XmlQualifiedName() XmlQualifiedName() XmlQualifiedName() XmlQualifiedName()

初始化 XmlQualifiedName 类的新实例。Initializes a new instance of the XmlQualifiedName class.

XmlQualifiedName(String) XmlQualifiedName(String) XmlQualifiedName(String) XmlQualifiedName(String)

用指定的名称初始化 XmlQualifiedName 类的新实例。Initializes a new instance of the XmlQualifiedName class with the specified name.

XmlQualifiedName(String, String) XmlQualifiedName(String, String) XmlQualifiedName(String, String) XmlQualifiedName(String, String)

用指定的名称和命名空间初始化 XmlQualifiedName 类的新实例。Initializes a new instance of the XmlQualifiedName class with the specified name and namespace.

字段

Empty Empty Empty Empty

提供空 XmlQualifiedNameProvides an empty XmlQualifiedName.

属性

IsEmpty IsEmpty IsEmpty IsEmpty

获取一个值,该值指示 XmlQualifiedName 是否为空。Gets a value indicating whether the XmlQualifiedName is empty.

Name Name Name Name

获取 XmlQualifiedName 的限定名的字符串表示形式。Gets a string representation of the qualified name of the XmlQualifiedName.

Namespace Namespace Namespace Namespace

获取 XmlQualifiedName 的命名空间的字符串表示形式。Gets a string representation of the namespace of the XmlQualifiedName.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的 XmlQualifiedName 对象是否等同于当前的 XmlQualifiedNameDetermines whether the specified XmlQualifiedName object is equal to the current XmlQualifiedName object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

返回 XmlQualifiedName 的哈希代码。Returns the hash code for the XmlQualifiedName.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回 XmlQualifiedName 的字符串值。Returns the string value of the XmlQualifiedName.

ToString(String, String) ToString(String, String) ToString(String, String) ToString(String, String)

返回 XmlQualifiedName 的字符串值。Returns the string value of the XmlQualifiedName.

操作员

Equality(XmlQualifiedName, XmlQualifiedName) Equality(XmlQualifiedName, XmlQualifiedName) Equality(XmlQualifiedName, XmlQualifiedName) Equality(XmlQualifiedName, XmlQualifiedName)

比较两个 XmlQualifiedName 对象。Compares two XmlQualifiedName objects.

Inequality(XmlQualifiedName, XmlQualifiedName) Inequality(XmlQualifiedName, XmlQualifiedName) Inequality(XmlQualifiedName, XmlQualifiedName) Inequality(XmlQualifiedName, XmlQualifiedName)

比较两个 XmlQualifiedName 对象。Compares two XmlQualifiedName objects.

适用于