XmlNamespaceMapping 类

定义

声明统一资源标识符 (URI) 和前缀之间的映射。Declares a mapping between a uniform resource identifier (URI) and a prefix.

public ref class XmlNamespaceMapping : System::ComponentModel::ISupportInitialize
public class XmlNamespaceMapping : System.ComponentModel.ISupportInitialize
type XmlNamespaceMapping = class
    interface ISupportInitialize
Public Class XmlNamespaceMapping
Implements ISupportInitialize
继承
XmlNamespaceMapping
实现

注解

若要声明 URI 和前缀之间的映射,请创建一个 XmlNamespaceMapping 类并将其添加到用作绑定 XmlNamespaceManagerXmlNamespaceMappingCollection 对象中。To declare a mapping between a URI and a prefix, create an XmlNamespaceMapping class and add it to an XmlNamespaceMappingCollection object that is used as the XmlNamespaceManager for a binding.

构造函数

XmlNamespaceMapping()

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

XmlNamespaceMapping(String, Uri)

使用指定的前缀和统一资源标识符 (URI) 初始化 XmlNamespaceMapping 类的新实例。Initializes a new instance of the XmlNamespaceMapping class with the specified prefix and uniform resource identifier (URI).

属性

Prefix

获取或设置要在 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) 中使用的前缀。Gets or sets the prefix to use in 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML).

Uri

获取或设置要为其创建映射的命名空间的 UriGets or sets the Uri of the namespace for which to create a mapping.

方法

Equals(Object)

返回一个值,该值指示此 XmlNamespaceMapping 是否与指定实例相等。Returns a value that indicates whether this XmlNamespaceMapping is equivalent to the specified instance.

GetHashCode()

返回此 XmlNamespaceMapping 的哈希代码。Returns the hash code for this XmlNamespaceMapping.

GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

操作员

Equality(XmlNamespaceMapping, XmlNamespaceMapping)

按值执行相等比较。Performs equality comparison by value.

Inequality(XmlNamespaceMapping, XmlNamespaceMapping)

按值执行不相等比较。Performs inequality comparison by value.

显式界面实现

ISupportInitialize.BeginInit()

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

ISupportInitialize.EndInit()

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

适用于

另请参阅