IHttpBody.WriteHttpBody Method
Creates a stream that contains the HTTP body.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Sub WriteHttpBody ( _
request As WebTestRequest, _
bodyStream As Stream _
)
void WriteHttpBody(
WebTestRequest request,
Stream bodyStream
)
void WriteHttpBody(
WebTestRequest^ request,
Stream^ bodyStream
)
abstract WriteHttpBody :
request:WebTestRequest *
bodyStream:Stream -> unit
function WriteHttpBody(
request : WebTestRequest,
bodyStream : Stream
)
Parameters
request
Type: Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestUsed to define the encoding of non-ASCII characters.
bodyStream
Type: StreamThe stream to add the form post HTTP body.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.