Taal

Chain.DefaultIfException Methode

Definitie

Overloads

Name Description
DefaultIfException<T,E>(IDialog<T>)

Wanneer het antecedent IDialog<TResult> is voltooid, stop je de voortplanting van een uitzondering van E.

DefaultIfException<T>(IDialog<T>)

Wanneer het antecedent IDialog<TResult> is voltooid, stop je de voortplanting van Uitzondering.

DefaultIfException<T,E>(IDialog<T>)

Bron:
Chain.cs

Wanneer het antecedent IDialog<TResult> is voltooid, stop je de voortplanting van een uitzondering van E.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> DefaultIfException<T,E>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent) where E : Exception;
static member DefaultIfException : Microsoft.Bot.Builder.Dialogs.IDialog<'T> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T> (requires 'E :> Exception)
<Extension()>
Public Function DefaultIfException(Of T, E) (antecedent As IDialog(Of T)) As IDialog(Of T)

Type parameters

T

Het type dat wordt teruggegeven door de voorgaande dialoog.

E

Het soort uitzondering op slikken.

Parameters

antecedent
IDialog<T>

De voorafgaande dialoog IDialog<TResult>.

Retouren

IDialog<T>

De standaardwaarde van T als er een uitzondering van type Eis.

Van toepassing op

DefaultIfException<T>(IDialog<T>)

Bron:
Chain.cs

Wanneer het antecedent IDialog<TResult> is voltooid, stop je de voortplanting van Uitzondering.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> DefaultIfException<T>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent);
static member DefaultIfException : Microsoft.Bot.Builder.Dialogs.IDialog<'T> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function DefaultIfException(Of T) (antecedent As 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>.

Retouren

IDialog<T>

De standaardwaarde van T als er een uitzondering is.

Van toepassing op