語言

SqlPersistenceProviderFactory.OnBeginClose 方法

定義

代表封閉階段的開始。

protected:
 override IAsyncResult ^ OnBeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state);
override this.OnBeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overrides Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

timeout
TimeSpan

持續服務提供者終止此嘗試的時間段。

callback
AsyncCallback

操作完成後要呼叫的方法。

state
Object

一個使用者提供的物件,用來區分此特定非同步操作與其他操作。

傳回

非同步方法呼叫的 OnBeginClose(TimeSpan, AsyncCallback, Object) 狀態。

備註

關閉階段發生在服務關閉時。

適用於