ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) Method

定義

サービス ホストの終了時に呼び出される非同期操作を開始します。Begins an asynchronous operation invoked on the close of the service host.

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 TimeSpan TimeSpan TimeSpan

終了時の操作がタイム アウトまでに完了する必要がある時間を指定する TimeSpanThe TimeSpan that specifies how long the on-close operation has to complete before timing out.

callback
AsyncCallback AsyncCallback AsyncCallback AsyncCallback

非同期終了時操作の完了通知を受信する AsyncCallback デリゲート。The AsyncCallback delegate that receives the notification of the asynchronous operation on-close completion.

state
Object Object Object Object

非同期終了時操作に関連付けられている状態情報を保持するオブジェクト。アプリケーションで指定します。An object, specified by the application, that contains state information associated with the asynchronous on-close operation.

戻り値

非同期終了時操作を参照する IAsyncResultThe IAsyncResult that references the asynchronous on-close operation.

適用対象