Share via


StreamingRequestExtensions.SetBody Method

Definition

Overloads

SetBody(StreamingRequest, Object)

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

SetBody(StreamingRequest, String)

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

SetBody(StreamingRequest, Object)

Source:
StreamingRequestExtensions.cs

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

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

Parameters

request
StreamingRequest

The StreamingRequest instance to attach this body to.

body
Object

An object containing the data to insert into the stream.

Applies to

SetBody(StreamingRequest, String)

Source:
StreamingRequestExtensions.cs

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

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

Parameters

request
StreamingRequest

The StreamingRequest instance to attach this body to.

body
String

A string containing the data to insert into the stream.

Applies to