Share via


IHttpBody Interface

Provides a common interface for accessing an HTTP body.

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

Syntax

'Declaration
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

The IHttpBody type exposes the following members.

Properties

  Name Description
Public property ContentType Gets a value that represents the content-type of the body.

Top

Methods

  Name Description
Public method Clone Creates a new object that is a copy of the current instance. (Inherited from ICloneable.)
Public method WriteHttpBody Creates a stream that contains the HTTP body.

Top

Remarks

IHttpBody provides access to the HTTP body through the WriteHttpBody method.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Working with Web Tests