ChannelManagerBase.IDefaultCommunicationTimeouts.CloseTimeout 屬性

定義

取得通訊物件叫用之關閉方法逾時前所經過的時間間隔。

property TimeSpan System::ServiceModel::IDefaultCommunicationTimeouts::CloseTimeout { TimeSpan get(); };
TimeSpan System.ServiceModel.IDefaultCommunicationTimeouts.CloseTimeout { get; }
member this.System.ServiceModel.IDefaultCommunicationTimeouts.CloseTimeout : TimeSpan
 ReadOnly Property CloseTimeout As TimeSpan Implements IDefaultCommunicationTimeouts.CloseTimeout

屬性值

TimeSpan

TimeSpan,其指定在關閉方法逾時之前所等待的時間間隔。

實作

備註

執行時間可能較長的所有作業都必須有逾時值。 您必須將未採用明確逾時值的方法委派至具有預設逾時值的方法,或是不能以這些方法來執行封鎖的任何工作。 逾時值是所要完成之高階作業的寬限時間總量,因此任何重試作業都必須受限於先前所做嘗試尚未用掉的時間。

適用於