Extensions.InterruptAsync<T,R> 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.
Interrompez la discussion d’attente avec une nouvelle boîte de dialogue
public static System.Threading.Tasks.Task InterruptAsync<T,R>(this Microsoft.Bot.Builder.Dialogs.Internals.IDialogTask task, Microsoft.Bot.Builder.Dialogs.IDialog<T> dialog, R item, System.Threading.CancellationToken token);
static member InterruptAsync : Microsoft.Bot.Builder.Dialogs.Internals.IDialogTask * Microsoft.Bot.Builder.Dialogs.IDialog<'T> * 'R * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InterruptAsync(Of T, R) (task As IDialogTask, dialog As IDialog(Of T), item As R, token As CancellationToken) As Task
Paramètres de type
- T
Le type de résultat attendu du dialogue.
- R
Le type d’élément posté dans la boîte de dialogue.
Paramètres
- task
- IDialogTask
La tâche de dialogue.
- dialog
- IDialog<T>
Le nouveau dialogue d’interruption.
- item
- R
L’élément à transférer dans la nouvelle boîte de dialogue d’interruption.
- token
- CancellationToken
Jeton d’annulation.
Retours
Une tâche qui représente l’opération d’interruption.