語言

PromptDialog.PromptAttachment 類別

定義

附件提示

[System.Serializable]
public class PromptDialog.PromptAttachment : Microsoft.Bot.Builder.Dialogs.Internals.Prompt<System.Collections.Generic.IEnumerable<Microsoft.Bot.Connector.Attachment>,Microsoft.Bot.Connector.Attachment>
[<System.Serializable>]
type PromptDialog.PromptAttachment = class
    inherit Prompt<seq<Attachment>, Attachment>
Public Class PromptDialog.PromptAttachment
Inherits Prompt(Of IEnumerable(Of Attachment), Attachment)
繼承
PromptDialog.PromptAttachment
屬性

備註

通常透過 Attachment(IDialogContext, ResumeAfter<IEnumerable<Attachment>>, String, IEnumerable<String>, String, Int32)。

建構函式

名稱 Description
PromptDialog.PromptAttachment(String, String, Int32, IEnumerable<String>)

用於提示附件對話的建構器。

欄位

名稱 Description
promptOptions

附件提示

(繼承來源 Prompt<T,U>)

屬性

名稱 Description
ContentTypes

附件提示

方法

名稱 Description
MakePrompt(IDialogContext, String, IReadOnlyList<U>, IReadOnlyList<String>, String)

附件提示

(繼承來源 Prompt<T,U>)
MessageReceivedAsync(IDialogContext, IAwaitable<IMessageActivity>)

附件提示

(繼承來源 Prompt<T,U>)
TryParse(IMessageActivity, IEnumerable<Attachment>)

附件提示

TryParse(IMessageActivity, T)

附件提示

(繼承來源 Prompt<T,U>)

明確介面實作

名稱 Description
IDialog<T>.StartAsync(IDialogContext)

附件提示

(繼承來源 Prompt<T,U>)

擴充方法

名稱 Description
Catch<T,E>(IDialog<T>, Func<IDialog<T>,E,IDialog<T>>)

當前件 IDialog<TResult> 完成後,捕捉並處理任何類型的 E例外。

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

當前件 IDialog<TResult> 完成後,捕捉並處理任何例外。

ContinueWith<T,R>(IDialog<T>, Chain.Continuation<T,R>)

當前件 IDialog<TResult> 完成後,執行延續以產生下一個 IDialog<TResult>。

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

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

DefaultIfException<T>(IDialog<T>)

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

Do<T>(IDialog<T>, Func<IBotContext,IAwaitable<T>,Task>)

完成後 IDialog<TResult> 執行一個副效果。

Loop<T>(IDialog<T>)

永遠循環 IDialog<TResult> 。

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

當先行件 IDialog<TResult> 完成後,將該項目放入事件佇列。

PostToUser<T>(IDialog<T>)

請向使用者 IDialog<TResult>發布 .

Select<T,R>(IDialog<T>, Func<T,R>)

當先件 IDialog<TResult> 完成後,將結果投影為新的 IDialog<TResult>。

SelectMany<T,C,R>(IDialog<T>, Func<T,IDialog<C>>, Func<T,C,R>)

當先件 IDialog<TResult> 完成後,執行下一個 IDialog<TResult>,並利用投影將結果合併。

Switch<T,R>(IDialog<T>, ICase<T,R>[])

當前件 IDialog<TResult> 完成後,逐一檢查 ICase<T,R> 並執行 ContextualSelector<T,R>第一個 ICase<T,R> 前件對話中回傳值所滿足的「。

Then<T,R>(IDialog<T>, Func<IBotContext,IAwaitable<T>,Task<R>>)

完成後 IDialog<TResult> 執行一個動作。

Void<T,R>(IDialog<T>)

呼叫 voided IDialog<TResult>,忽略結果,然後重新開始原本的對話框等待。

Void<T>(IDialog<T>, IDialogStack)

呼叫 voided IDialog<TResult>,忽略結果,然後重新開始原本的對話框等待。

WaitToBot<T>(IDialog<T>)

先行詞完成後,將訊息發給機器人。

Where<T>(IDialog<T>, Func<T,Boolean>)

當前件 IDialog<TResult> 完成後,評估謂詞並決定是否繼續。

While<T>(IDialog<T>, Func<T,IDialog<Boolean>>, Func<T,IDialog<T>>)

建立 IDialog<TResult> 一個代表 while 迴圈的 a。

WithScorable<T,Item,Score>(IDialog<T>, IScorable<Item,Score>)

用可得分物裝飾對話,讓該可得分者能參與對話堆疊。

適用於