语言

StreamingResponse.NotFound(HttpContent) 方法

定义

生成一个响应,表示未找到请求的资源。

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

参数

body
HttpContent

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

返回

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

适用于