Jaa


StreamingResponseExtensions.SetBody Method

Definition

Overloads

SetBody(StreamingResponse, Object)

Adds a new stream to this StreamingResponse containing the passed in body. Noop on null body or null response.

SetBody(StreamingResponse, String)

Adds a new stream to this StreamingResponse containing the passed in body. Noop on empty body or null response.

SetBody(StreamingResponse, Object)

Source:
StreamingResponseExtensions.cs

Adds a new stream to this StreamingResponse containing the passed in body. Noop on null body or null response.

public static void SetBody (this Microsoft.Bot.Streaming.StreamingResponse response, object body);
static member SetBody : Microsoft.Bot.Streaming.StreamingResponse * obj -> unit
<Extension()>
Public Sub SetBody (response As StreamingResponse, body As Object)

Parameters

response
StreamingResponse

The StreamingResponse instance to attach this body to.

body
Object

An object containing the data to insert into the stream.

Applies to

SetBody(StreamingResponse, String)

Source:
StreamingResponseExtensions.cs

Adds a new stream to this StreamingResponse containing the passed in body. Noop on empty body or null response.

public static void SetBody (this Microsoft.Bot.Streaming.StreamingResponse response, string body);
static member SetBody : Microsoft.Bot.Streaming.StreamingResponse * string -> unit
<Extension()>
Public Sub SetBody (response As StreamingResponse, body As String)

Parameters

response
StreamingResponse

The StreamingResponse instance to attach this body to.

body
String

A string containing the data to insert into the stream.

Applies to