ICommunicationObject.EndClose(IAsyncResult) 方法

定義

完成非同步作業以關閉通訊物件。Completes an asynchronous operation to close a communication object.

public:
 void EndClose(IAsyncResult ^ result);
public void EndClose (IAsyncResult result);
abstract member EndClose : IAsyncResult -> unit
Public Sub EndClose (result As IAsyncResult)

參數

result
IAsyncResult

IAsyncResult,在呼叫 BeginClose 方法時所傳回。The IAsyncResult that is returned by a call to the BeginClose method.

例外狀況

已針對處於 BeginClose 狀態中的物件呼叫 FaultedBeginClose was called on an object in the Faulted state.

經過逾時時間之後,就可以正常關閉 ICommunicationObjectThe timeout elapsed before the ICommunicationObject was able to close gracefully.

適用於