语言

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

一个包含额外信息的可选正文。

返回

回复中带有相应状态代码并传达。

适用于