IInputChannel.EndWaitForMessage(IAsyncResult) Méthode
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.
Termine l'opération asynchrone spécifiée d'attente d'un message.
public:
bool EndWaitForMessage(IAsyncResult ^ result);
public bool EndWaitForMessage (IAsyncResult result);
abstract member EndWaitForMessage : IAsyncResult -> bool
Public Function EndWaitForMessage (result As IAsyncResult) As Boolean
- result
- IAsyncResult
IAsyncResult qui identifie l'opération BeginWaitForMessage(TimeSpan, AsyncCallback, Object) à terminer et à partir de laquelle il est possible de récupérer un résultat final.
true
si un message est arrivé avant que le timeout
soit dépassé ; sinon false
.
Le code suivant illustre comment implémenter cette méthode :
public bool EndWaitForMessage(IAsyncResult result)
{
return this.InnerChannel.EndWaitForMessage(result);
}
Produit | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: