<namespaceTable>

表示用于定义一组元素的配置节,这些元素包含随后可在 XPath 筛选器中用于路由的前缀映射的命名空间。Represents a configuration section for defining a set of elements that contain namespace to prefix mappings that can then be used in XPath filters for routing.

<configuration>
  <system.serviceModel>
    <routing>
      <namespaceTable>

语法Syntax

<system.serviceModel>
  <routing>
    <namespaceTable>
      <add namespace="String"
           prefix="String" />
    </namespaceTable>
  </routing>
</system.serviceModel>

特性和元素Attributes and elements

下列各节描述了特性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

特性Attributes

None

子元素Child elements

说明Description
<filter> 定义用于 XPath 表达式的命名空间前缀映射。Defines a namespace prefix mapping used for XPath expressions.

父元素Parent elements

说明Description
<routing> 表示用于定义一组路由筛选器的配置节,这些筛选器确定计算传入消息时使用的 Windows Communication Foundation (WCF)的类型,以及用于 MessageFilter 定义在筛选器匹配时要将消息发送到的目标终结点的路由表。Represents a configuration section for defining a set of routing filters, which determine the type of Windows Communication Foundation (WCF)MessageFilter to be used when evaluating incoming messages, as well as routing tables that define the target endpoints to send messages to when a filter matches.

另请参阅See also