ChannelFactoryBase.OnBeginClose(TimeSpan, AsyncCallback, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Commence une opération asynchrone pour fermer chacun des canaux créés par la fabrique.
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
Paramètres
- timeout
- TimeSpan
Qui TimeSpan spécifie la durée pendant laquelle l’opération de fermeture doit être terminée avant l’expiration du délai d’attente.
- 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 lors de l’opération de fermeture.
Retours
Qui IAsyncResult fait référence à l’opération asynchrone lors de la fermeture.