Taal

Chain.Catch Methode

Definitie

Overloads

Name Description
Catch<T,E>(IDialog<T>, Func<IDialog<T>,E,IDialog<T>>)

Wanneer het antecedent IDialog<TResult> is voltooid, vang en behandel dan eventuele uitzonderingen van type E.

Catch<T>(IDialog<T>, Func<IDialog<T>,Exception,IDialog<T>>)

Wanneer het antecedent IDialog<TResult> is voltooid, vang en behandel dan eventuele uitzonderingen.

Catch<T,E>(IDialog<T>, Func<IDialog<T>,E,IDialog<T>>)

Bron:
Chain.cs

Wanneer het antecedent IDialog<TResult> is voltooid, vang en behandel dan eventuele uitzonderingen van 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)

Type parameters

T

Het type dat wordt teruggegeven door de voorgaande dialoog.

E

Het soort uitzondering om te vangen en te behandelen.

Parameters

antecedent
IDialog<T>

De voorafgaande dialoog IDialog<TResult>.

block
Func<IDialog<T>,E,IDialog<T>>

De lambda-uitdrukking die de catch block handler voorstelt.

Retouren

IDialog<T>

Het resultaat van de catch block handler als er een uitzondering van type is E.

Van toepassing op

Catch<T>(IDialog<T>, Func<IDialog<T>,Exception,IDialog<T>>)

Bron:
Chain.cs

Wanneer het antecedent IDialog<TResult> is voltooid, vang en behandel dan eventuele uitzonderingen.

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)

Type parameters

T

Het type dat wordt teruggegeven door de voorgaande dialoog.

Parameters

antecedent
IDialog<T>

De voorafgaande dialoog IDialog<TResult>.

block
Func<IDialog<T>,Exception,IDialog<T>>

De lambda-uitdrukking die de catch block handler voorstelt.

Retouren

IDialog<T>

Het resultaat van de catch block handler als er een uitzondering is.

Van toepassing op