Chain.DefaultIfException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DefaultIfException<T,E>(IDialog<T>) |
When the antecedent IDialog<TResult> has completed, stop the propagation of an exception of |
DefaultIfException<T>(IDialog<T>) |
When the antecedent IDialog<TResult> has completed, stop the propagation of Exception. |
DefaultIfException<T,E>(IDialog<T>)
- Source:
- Chain.cs
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
The default value of T
if there is an exception of type E
.
Applies to
DefaultIfException<T>(IDialog<T>)
- Source:
- Chain.cs
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
The default value of T
if there is an Exception.