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

Définition

Lance une opération asynchrone appelée à l'ouverture de l'hôte du service.

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

Paramètres

timeout
TimeSpan

TimeSpan spécifiant le délai d'exécution de l'opération d'ouverture avant le dépassement du délai d'attente.

callback
AsyncCallback

Délégué AsyncCallback qui reçoit la notification de la fin de l'opération asynchrone d'ouverture.

state
Object

Objet, spécifié par l'application, qui contient les informations d'état associées à l'opération asynchrone d'ouverture.

Retours

IAsyncResult qui fait référence à l'opération asynchrone d'ouverture.

S’applique à