StreamingResponse.Forbidden(HttpContent) Method

Definition

Creates a response indicating the requested resource is forbidden.

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

Parameters

body
HttpContent

An optional body containing additional information.

Returns

A response with the appropriate statuscode and passed in body.

Applies to