HttpRequest 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
執行 HttpRequest 的動作。
public class HttpRequest : Microsoft.Bot.Builder.Dialogs.Dialog
type HttpRequest = class
inherit Dialog
Public Class HttpRequest
Inherits Dialog
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| HttpRequest(HttpRequest+HttpMethod, String, Dictionary<String,StringExpression>, Object, String, Int32) |
初始化 HttpRequest 類別的新執行個體。 |
| HttpRequest(String, Int32) |
初始化 HttpRequest 類別的新執行個體。 |
欄位
| 名稱 | Description |
|---|---|
| Kind |
類別識別碼。 |
屬性
| 名稱 | Description |
|---|---|
| Body |
負責接收或設定身體載重。 |
| ContentType |
取得或設定 HTTP 操作主體的內容型態。 |
| Disabled |
取得或設定一個可選表達式,若為真則會停用此動作。 |
| Headers |
取得或設定標頭。 |
| Id |
取得或設定對話的 ID。 (繼承來源 Dialog) |
| Method |
取得或設定 HttpMethod 要使用。 |
| ResponseType |
取得或設定回應類型。 |
| ResultProperty |
取得或設定屬性表達式來儲存 HTTP 回應。 |
| Source |
取得 cref=“SourceRange”/> 的資訊。 (繼承來源 Dialog) |
| TelemetryClient |
取得或設定 IBotTelemetryClient 用於記錄。 (繼承來源 Dialog) |
| Url |
取得或設定網址。 |
方法
擴充方法
| 名稱 | Description |
|---|---|
| RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken) |
建立對話堆疊並啟動對話,並將它推送至堆疊。 |