Chain.DefaultIfException Method

Definition

Overloads

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

When the antecedent IDialog<TResult> has completed, stop the propagation of an exception of E.

DefaultIfException<T>(IDialog<T>)

When the antecedent IDialog<TResult> has completed, stop the propagation of Exception.

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

When the antecedent IDialog<TResult> has completed, stop the propagation of an exception of 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

The type returned by the antecedent dialog.

E

The type of exception to swallow.

Parameters

antecedent
IDialog<T>

The antecedent dialog IDialog<TResult>.

Returns

IDialog<T>

The default value of T if there is an exception of type E.

Applies to

DefaultIfException<T>(IDialog<T>)

When the antecedent IDialog<TResult> has completed, stop the propagation of Exception.

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

The type returned by the antecedent dialog.

Parameters

antecedent
IDialog<T>

The antecedent dialog IDialog<TResult>.

Returns

IDialog<T>

The default value of T if there is an Exception.

Applies to