<scopes>

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

架构层次结构

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

语法

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

属性和元素

以下几节描述了特性、子元素和父元素。

属性

无。

子元素

特性 说明

<scopes> 的 <add>

添加可在匹配条件以查找服务时使用的终结点的范围信息。

父元素

元素 说明

<endpointDiscovery>

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

另请参见

参考

EndpointDiscoveryBehavior