Object. On Close(TimeSpan) Method
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 TimeSpan that specifies how long the on close operation has to complete before timing out.
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.