<scopes>

包含一个配置元素集合,这些元素指定可用于在查询时筛选服务终结点的自定义范围 URI。

configuration
  system.serviceModel
    behaviors
      endpointBehaviors
        behavior
          <endpointDiscovery>
            <scopes>

语法

<behaviors>
  <endpointBehaviors>
    <behavior name="String">
      <endpointDiscovery enable="Boolean">
        <scopes>
          <add scope="URI" />
        </scopes>
      </endpointDiscovery>
    </behavior>
  </endpointBehaviors>
</behaviors>

特性和元素

下列各节描述了特性、子元素和父元素。

特性

无。

子元素

属性 说明
<add> 添加可在匹配条件以查找服务时使用的终结点的范围信息。

父元素

元素 说明
<endpointDiscovery> 指定终结点的各种发现设置,例如终结点的可发现性、范围以及对终结点元数据的任何自定义扩展。

请参阅