語言

Chain.DefaultIfException 方法

定義

多載

名稱 Description
DefaultIfException<T,E>(IDialog<T>)

當前件 IDialog<TResult> 完成後,停止 的 E例外傳播。

DefaultIfException<T>(IDialog<T>)

當前件 IDialog<TResult> 完成後,停止異常的傳播。

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

來源:
Chain.cs

當前件 IDialog<TResult> 完成後,停止 的 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)

類型參數

T

由前件對話回傳的型別。

E

那種例外,不能吞下去。

參數

antecedent
IDialog<T>

前件對話 IDialog<TResult>。

傳回

IDialog<T>

若存在例外E,則 的T預設值為 。

適用於

DefaultIfException<T>(IDialog<T>)

來源:
Chain.cs

當前件 IDialog<TResult> 完成後,停止異常的傳播。

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)

類型參數

T

由前件對話回傳的型別。

參數

antecedent
IDialog<T>

前件對話 IDialog<TResult>。

傳回

IDialog<T>

如果存在例外,則為預設值 T 。

適用於