ServiceHostBase.OnBeginOpen(TimeSpan, AsyncCallback, Object) メソッド

定義

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

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

パラメーター

timeout
TimeSpan

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

callback
AsyncCallback

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

state
Object

非同期開始時操作に関連付けられた状態情報を格納するオブジェクト。アプリケーションによって指定されます。An object, specified by the application, that contains state information associated with the asynchronous on-open operation.

戻り値

IAsyncResult

非同期開始時操作を参照する IAsyncResultThe IAsyncResult that references the asynchronous on-open operation.

適用対象