ServiceHostBase.DefaultOpenTimeout 屬性

定義

取得允許服務主機開啟的預設時間間隔。Gets the default interval of time allowed for the service host to open.

protected:
 virtual property TimeSpan DefaultOpenTimeout { TimeSpan get(); };
protected override TimeSpan DefaultOpenTimeout { get; }
member this.DefaultOpenTimeout : TimeSpan
Protected Overrides ReadOnly Property DefaultOpenTimeout As TimeSpan

屬性值

TimeSpan

TimeSpan,指定允許服務主機開啟的預設時間間隔。The TimeSpan that specifies the default interval of time allowed for the service host to open.

範例

TimeSpan openTimeout = hostDefault.OpenTimeout;

適用於