XPathMessageContextMarkupExtension 类

定义

提供 XPathMessageContext 的扩展以便在将 XPath 消息查询序列化为 XAML 时包含命名空间。Provides an extension of the XPathMessageContext to contain namespaces when serializing XPath message queries into XAML.

public ref class XPathMessageContextMarkupExtension : System::Windows::Markup::MarkupExtension
[System.Windows.Markup.ContentProperty("Namespaces")]
public class XPathMessageContextMarkupExtension : System.Windows.Markup.MarkupExtension
[<System.Windows.Markup.ContentProperty("Namespaces")>]
type XPathMessageContextMarkupExtension = class
    inherit MarkupExtension
Public Class XPathMessageContextMarkupExtension
Inherits MarkupExtension
继承
XPathMessageContextMarkupExtension
属性

注解

将此类与 XPathMessageContextTypeConverter 一起使用可将 XPathMessageContext 转换为 XPathMessageContextMarkupExtension 类型。This class is used in conjunction with the XPathMessageContextTypeConverter to convert an XPathMessageContext into the XPathMessageContextMarkupExtension type. 此类可将 XPath 查询上下文信息从 XML 文件格式转换为一种可序列化为 XAML 的格式。That class converts the XPath query context information from an XML file into a format that can be serialized as XAML.

构造函数

XPathMessageContextMarkupExtension()

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

XPathMessageContextMarkupExtension(XPathMessageContext)

使用要转换的 XPathMessageContextMarkupExtension 初始化 XPathMessageContext 类的新实例。Initializes a new instance of the XPathMessageContextMarkupExtension class with the XPathMessageContext to convert.

属性

Namespaces

获取此实例中包含的命名空间。Gets the namespaces contained in this instance.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ProvideValue(IServiceProvider)

提供 XPath 消息查询中使用的命名空间。Provides the namespaces used in the XPath message query.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅