StreamingResponseExtensions.SetBody Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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.