ServiceHostBase.OpenTimeout 属性

定义

获取或设置允许服务主机打开的时间间隔。Gets or sets the interval of time allowed for the service host to open.

public:
 property TimeSpan OpenTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan OpenTimeout { get; set; }
member this.OpenTimeout : TimeSpan with get, set
Public Property OpenTimeout As TimeSpan

属性值

TimeSpan

TimeSpan,指定允许服务主机打开的时间间隔。The TimeSpan that specifies the interval of time allowed for the service host to open.

例外

值小于零或大于 MaxValue(2,147,483,647 或以十六进制表示的 0X7FFFFFFF)。The value is less than zero or is larger than MaxValue (2,147,483,647 or, in hexadecimal notation, 0X7FFFFFFF).

主机处于 OpeningClosing 状态,因此无法修改。The host is in an Opening or Closing state and cannot be modified.

主机已处于 Closed 状态,因此无法修改。The host is already in a Closed state and cannot be modified.

主机处于 Faulted 状态,因此无法修改。The host is in a Faulted state and cannot be modified.

适用于