ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始服務主機關閉時所叫用的非同步作業。
protected:
override IAsyncResult ^ OnBeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected override sealed IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state);
protected override IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state);
override this.OnBeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overrides NotOverridable Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
Protected Overrides Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
參數
- callback
- AsyncCallback
AsyncCallback 委派,會接收非同步作業關閉完成的通知。
- state
- Object
應用程式所指定的物件,其中包含與非同步關閉作業相關的狀態資訊。
傳回
IAsyncResult,這個物件會參考非同步關閉作業。