Object. On Close(TimeSpan) 方法
在通訊物件上插入處理 (當它因為叫用同步關閉作業而轉換到關閉狀態之後)。Inserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous close operation.
protected: abstract void OnClose(TimeSpan timeout);
protected abstract void OnClose (TimeSpan timeout);
abstract member OnClose : TimeSpan -> unit
Protected MustOverride Sub OnClose (timeout As TimeSpan)
已超過為作業分配的預設時間間隔，該作業未完成。The default interval of time that was allotted for the operation was exceeded before the operation was completed.
關閉物件時發生通訊錯誤。A communication error occurred while closing the object.
若要在通訊物件因為叫用非同步 BeginClose 作業而轉換至關閉狀態後插入處理，請使用 OnBeginClose 方法。To insert processing after a communication object transitions to a closing state due to the invocation of an asynchronous BeginClose operation, use the OnBeginClose method.