XmlNamespaceMapping XmlNamespaceMapping XmlNamespaceMapping XmlNamespaceMapping Class

定義

宣告統一資源識別項 (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
繼承
XmlNamespaceMappingXmlNamespaceMappingXmlNamespaceMappingXmlNamespaceMapping
實作

備註

若要宣告URIURI與前置詞之間的對應, 請XmlNamespaceMapping建立類別, XmlNamespaceMappingCollection並將它加入做為系結使用XmlNamespaceManager的物件。To declare a mapping between a URIURI 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() XmlNamespaceMapping() XmlNamespaceMapping()

初始化 XmlNamespaceMapping 類別的新執行個體。Initializes a new instance of the XmlNamespaceMapping class.

XmlNamespaceMapping(String, Uri) XmlNamespaceMapping(String, Uri) XmlNamespaceMapping(String, Uri) XmlNamespaceMapping(String, Uri)

使用指定的前置詞與統一資源識別項 (URI)uniform resource identifier (URI),初始化 XmlNamespaceMapping 類別的新執行個體。Initializes a new instance of the XmlNamespaceMapping class with the specified prefix and 統一資源識別項 (URI)uniform resource identifier (URI).

屬性

Prefix Prefix Prefix Prefix

取得或設定要在 Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML) 使用的前置詞。Gets or sets the prefix to use in Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML).

Uri Uri Uri Uri

取得或設定要建立其對應之命名空間的 UriGets or sets the Uri of the namespace for which to create a mapping.

方法

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

傳回值,表示這個 XmlNamespaceMapping 是否相當於指定的執行個體。Returns a value that indicates whether this XmlNamespaceMapping is equivalent to the specified instance.

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

傳回這個 XmlNamespaceMapping 的雜湊程式碼。Returns the hash code for this XmlNamespaceMapping.

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

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

運算子

Equality(XmlNamespaceMapping, XmlNamespaceMapping) Equality(XmlNamespaceMapping, XmlNamespaceMapping) Equality(XmlNamespaceMapping, XmlNamespaceMapping) Equality(XmlNamespaceMapping, XmlNamespaceMapping)

依值執行相等比較。Performs equality comparison by value.

Inequality(XmlNamespaceMapping, XmlNamespaceMapping) Inequality(XmlNamespaceMapping, XmlNamespaceMapping) Inequality(XmlNamespaceMapping, XmlNamespaceMapping) Inequality(XmlNamespaceMapping, XmlNamespaceMapping)

依值執行不相等比較。Performs inequality comparison by value.

明確介面實作

ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() 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() ISupportInitialize.EndInit() ISupportInitialize.EndInit() 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.

適用於

另請參閱