Condividi tramite


Interfaccia IHttpBody

Fornisce un'interfaccia comune per accedere a un corpo HTTP.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintassi

'Dichiarazione
Public Interface IHttpBody _
    Inherits ICloneable
public interface IHttpBody : ICloneable
public interface class IHttpBody : ICloneable
type IHttpBody =  
    interface
        interface ICloneable
    end
public interface IHttpBody extends ICloneable

Il tipo IHttpBody espone i seguenti membri.

Proprietà

  Nome Descrizione
Proprietà pubblica ContentType Ottiene un valore che rappresenta il Content-Type del corpo.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Clone Crea un nuovo oggetto che è una copia dell'istanza corrente. (Ereditato da ICloneable)
Metodo pubblico WriteHttpBody Crea un flusso che contiene il corpo HTTP.

In alto

Note

WriteHttpBody consente di accedere al corpo HTTP con diIHttpBody metodo.

Vedere anche

Riferimenti

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting

Altre risorse

Working with Web Tests