WSTrustChannel.BeginClose 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 un objet de communication.
Surcharges
| Nom | Description |
|---|---|
| BeginClose(AsyncCallback, Object) |
Commence une opération asynchrone pour fermer un objet de communication. |
| BeginClose(TimeSpan, AsyncCallback, Object) |
Commence une opération asynchrone pour fermer un objet de communication avec un délai d’expiration spécifié. |
BeginClose(AsyncCallback, Object)
Commence une opération asynchrone pour fermer un objet de communication.
public:
virtual IAsyncResult ^ BeginClose(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginClose(AsyncCallback callback, object state);
abstract member BeginClose : AsyncCallback * obj -> IAsyncResult
override this.BeginClose : AsyncCallback * obj -> IAsyncResult
Public Function BeginClose (callback As AsyncCallback, state As Object) As IAsyncResult
Paramètres
- callback
- AsyncCallback
Délégué AsyncCallback qui reçoit la notification de l’achèvement de l’opération de fermeture asynchrone.
- state
- Object
Objet, spécifié par l’application, qui contient des informations d’état associées à l’opération de fermeture asynchrone.
Retours
Qui IAsyncResult fait référence à l’opération de fermeture asynchrone.
Implémente
S’applique à
BeginClose(TimeSpan, AsyncCallback, Object)
Commence une opération asynchrone pour fermer un objet de communication avec un délai d’expiration spécifié.
public:
virtual IAsyncResult ^ BeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginClose (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’achèvement de l’opération de fermeture asynchrone.
- state
- Object
Objet, spécifié par l’application, qui contient des informations d’état associées à l’opération de fermeture asynchrone.
Retours
Qui IAsyncResult fait référence à l’opération de fermeture asynchrone.