OAuthInput 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
OAuthInput 會提示使用者登入。
public class OAuthInput : Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputDialog
type OAuthInput = class
inherit InputDialog
Public Class OAuthInput
Inherits InputDialog
- 繼承
建構函式
| OAuthInput() |
OAuthInput 會提示使用者登入。 |
欄位
| Kind |
類別標識碼。 |
| TURN_COUNT_PROPERTY |
定義對話框內容回合計數屬性值。 (繼承來源 InputDialog) |
| VALUE_PROPERTY |
定義對話內容狀態屬性值。 (繼承來源 InputDialog) |
屬性
| AllowInterruptions |
取得或設定 intteruption 原則。 (繼承來源 InputDialog) |
| AlwaysPrompt |
取得或設定值,指出輸入是否應該一律提示使用者,而不論是否有值。 (繼承來源 InputDialog) |
| ConnectionName |
取得或設定 OAuth 連接的名稱。 |
| DefaultValue |
取得或設定超過 MaxTurnCount時輸入對話框的預設值。 (繼承來源 InputDialog) |
| DefaultValueResponse |
取得或設定當達到 MaxTurnCount且使用預設值時要傳送的活動範本。 (繼承來源 InputDialog) |
| Disabled |
取得或設定是否應該停用此動作。 (繼承來源 InputDialog) |
| Id |
取得或設定對話框的識別碼。 (繼承來源 Dialog) |
| InvalidPrompt |
取得或設定每當提供的值無效時傳送給用戶的活動範本。 (繼承來源 InputDialog) |
| MaxTurnCount |
取得或設定在對話框放棄之前要求使用者提供此值的次數上限。 (繼承來源 InputDialog) |
| Prompt |
取得或設定要傳送給用戶的活動。 (繼承來源 InputDialog) |
| Property |
取得或設定將系結值的記憶體屬性路徑。 (繼承來源 InputDialog) |
| Source |
取得 cref=“SourceRange”/>的資訊。 (繼承來源 Dialog) |
| TelemetryClient |
取得或設定要用於記錄的 IBotTelemetryClient。 (繼承來源 Dialog) |
| Text |
取得或設定要包含在登入卡片中的任何額外文字。 |
| Timeout |
取得或設定提示等候使用者驗證的毫秒數。 默認值為 900,000 (15 分鐘)。 |
| Title |
取得或設定登入卡片的標題。 |
| UnrecognizedPrompt |
取得或設定重試的活動範本。 (繼承來源 InputDialog) |
| Validations |
取得或設定要執行的運算式,以驗證輸入。 (繼承來源 InputDialog) |
| Value |
取得或設定用來將輸入系結至對話框的表達式。 (繼承來源 InputDialog) |
方法
擴充方法
| RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken) |
建立對話堆疊並啟動對話,並將它推送至堆疊。 |