Chain.Catch 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.
Surcharges
| Nom | Description |
|---|---|
| Catch<T,E>(IDialog<T>, Func<IDialog<T>,E,IDialog<T>>) |
Lorsque l’antécédent IDialog<TResult> est terminé, capturez et gérez toute exception de type |
| Catch<T>(IDialog<T>, Func<IDialog<T>,Exception,IDialog<T>>) |
Lorsque l’antécédent IDialog<TResult> est terminé, détectez et gérez toute exception. |
Catch<T,E>(IDialog<T>, Func<IDialog<T>,E,IDialog<T>>)
- Source:
- Chain.cs
Lorsque l’antécédent IDialog<TResult> est terminé, capturez et gérez toute exception de type E.
public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Catch<T,E>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<Microsoft.Bot.Builder.Dialogs.IDialog<T>,E,Microsoft.Bot.Builder.Dialogs.IDialog<T>> block) where E : Exception;
static member Catch : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<Microsoft.Bot.Builder.Dialogs.IDialog<'T>, 'E, Microsoft.Bot.Builder.Dialogs.IDialog<'T> (requires 'E :> Exception)> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T> (requires 'E :> Exception)
<Extension()>
Public Function Catch(Of T, E) (antecedent As IDialog(Of T), block As Func(Of IDialog(Of T), E, IDialog(Of T))) As IDialog(Of T)
Paramètres de type
- T
Le type retourné par le dialogue antantérieur.
- E
Le type d’exception à attraper et manipuler.
Paramètres
- antecedent
- IDialog<T>
Le dialogue IDialog<TResult>antécédent.
L’expression lambda représente le gestionnaire de blocs de catch.
Retours
Le résultat du manège de blocs de capture s’il existe une exception de type E.
S’applique à
Catch<T>(IDialog<T>, Func<IDialog<T>,Exception,IDialog<T>>)
- Source:
- Chain.cs
Lorsque l’antécédent IDialog<TResult> est terminé, détectez et gérez toute exception.
public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Catch<T>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<Microsoft.Bot.Builder.Dialogs.IDialog<T>,Exception,Microsoft.Bot.Builder.Dialogs.IDialog<T>> block);
static member Catch : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<Microsoft.Bot.Builder.Dialogs.IDialog<'T>, Exception, Microsoft.Bot.Builder.Dialogs.IDialog<'T>> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function Catch(Of T) (antecedent As IDialog(Of T), block As Func(Of IDialog(Of T), Exception, IDialog(Of T))) As IDialog(Of T)
Paramètres de type
- T
Le type retourné par le dialogue antantérieur.
Paramètres
- antecedent
- IDialog<T>
Le dialogue IDialog<TResult>antécédent.
L’expression lambda représente le gestionnaire de blocs de catch.
Retours
Le résultat du manipulateur de blocs de capture s’il y a une exception.