StreamingRequestExtensions.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(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)
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)
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.