語言

StreamingResponse.Forbidden(HttpContent) 方法

定義

會產生回應表示該請求資源被禁止使用。

public static Microsoft.Bot.Streaming.StreamingResponse Forbidden(System.Net.Http.HttpContent body = default);
static member Forbidden : System.Net.Http.HttpContent -> Microsoft.Bot.Streaming.StreamingResponse
Public Shared Function Forbidden (Optional body As HttpContent = Nothing) As StreamingResponse

參數

body
HttpContent

一個包含額外資訊的選用主體。

傳回

回覆並附上適當的狀態代碼並傳達正文。

適用於