ChannelListenerBase.DefaultCloseTimeout 屬性


取得針對要完成之關閉作業所提供的預設時間間隔。Gets the default interval of time provided for a close operation to complete.

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


預設 TimeSpan,指定必須在逾時前多久完成關閉作業。The default TimeSpan that specifies how long the close operation has to complete before timing out.


當建立新的 ChannelListenerBase 物件時,會設定這個值。This value is set when creating a new ChannelListenerBase object. 預設的 ChannelListenerBase() 建構函式會將 DefaultCloseTimeout 屬性設定為 1 分鐘的值。The default ChannelListenerBase() constructor sets the DefaultCloseTimeout property to a value of 1 minute. 如果您想要為這個逾時指定另一個值,請使用 ChannelListenerBase(IDefaultCommunicationTimeouts)Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify another value for this timeout.