Langue

ServiceHostBase.OnBeginClose(TimeSpan, AsyncCallback, Object) Méthode

Définition

Commence une opération asynchrone appelée à la fermeture de l’hôte de service.

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

Paramètres

timeout
TimeSpan

Qui TimeSpan spécifie la durée pendant laquelle l’opération de fermeture doit se terminer avant le délai d’expiration.

callback
AsyncCallback

Délégué AsyncCallback qui reçoit la notification de l’opération asynchrone à la fin de la fermeture.

state
Object

Objet, spécifié par l’application, qui contient des informations d’état associées à l’opération asynchrone de fermeture.

Retours

Qui IAsyncResult fait référence à l’opération asynchrone de fermeture.

S’applique à