Compartilhar via


Método StringHttpBody.WriteHttpBody

Cria um fluxo que contém o corpo HTTP.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (em Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintaxe

'Declaração
Public Sub WriteHttpBody ( _
    request As WebTestRequest, _
    bodyStream As Stream _
)
public void WriteHttpBody(
    WebTestRequest request,
    Stream bodyStream
)
public:
virtual void WriteHttpBody(
    WebTestRequest^ request, 
    Stream^ bodyStream
) sealed
abstract WriteHttpBody : 
        request:WebTestRequest * 
        bodyStream:Stream -> unit 
override WriteHttpBody : 
        request:WebTestRequest * 
        bodyStream:Stream -> unit 
public final function WriteHttpBody(
    request : WebTestRequest, 
    bodyStream : Stream
)

Parâmetros

  • bodyStream
    Tipo: System.IO.Stream
    O fluxo para adicionar o corpo do formulário post HTTP.

Implementações

IHttpBody.WriteHttpBody(WebTestRequest, Stream)

Segurança do .NET Framework

Consulte também

Referência

StringHttpBody Classe

Namespace Microsoft.VisualStudio.TestTools.WebTesting