<timeOuts>

表示一个配置元素,该元素指定允许服务主机打开或关闭的时间间隔。

<configuration>
  <system.serviceModel>
    <services>
      <service>
        <host>
          <timeOuts>

Syntax

<timeOuts closeTimeout="TimeSpan"
          openTimeout="TimeSpan" />

特性和元素

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

特性

Attribute Description
closeTimeout 一个 TimeSpan 值,该值指定允许服务主机关闭的时间间隔。
openTimeout 一个 TimeSpan 值,该值指定允许服务主机打开的时间间隔。

子元素

没有。

父元素

元素 Description
<主机> 一个配置元素,指定服务主机的设置。

另请参阅