InvokeResponse<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含 HTTP 狀態碼和 JSON 可序列化物件的 Tuple 類別。 HTTP 狀態碼是在叫用活動案例中,將在產生的 POST 中設定的內容。 產生的 POST 主體會是 屬性中的 Body JSON 序列化內容。
public class InvokeResponse<T> : Microsoft.Bot.Builder.InvokeResponse
type InvokeResponse<'T> = class
inherit InvokeResponse
Public Class InvokeResponse(Of T)
Inherits InvokeResponse
類型參數
- T
InvokeResponse 中的本文類型。
- 繼承
建構函式
InvokeResponse<T>() |
包含 HTTP 狀態碼和 JSON 可序列化物件的 Tuple 類別。 HTTP 狀態碼是在叫用活動案例中,將在產生的 POST 中設定的內容。 產生的 POST 主體會是 屬性中的 Body JSON 序列化內容。 |
屬性
Body |
取得或設定回應的本文內容。 |
Status |
取得或設定回應的 HTTP 狀態碼。 (繼承來源 InvokeResponse) |
方法
IsSuccessStatusCode() |
取得值,指出叫用回應是否成功。 (繼承來源 InvokeResponse) |