Share via


WebTestRequest.Body Property

Gets or sets the body of this request.

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

Syntax

'Declaration
Public Property Body As IHttpBody
public IHttpBody Body { get; set; }
public:
property IHttpBody^ Body {
    IHttpBody^ get ();
    void set (IHttpBody^ value);
}
member Body : IHttpBody with get, set
function get Body () : IHttpBody
function set Body (value : IHttpBody)

Property Value

Type: Microsoft.VisualStudio.TestTools.WebTesting.IHttpBody
An IHttpBody object.

Remarks

The body should be nulla null reference (Nothing in Visual Basic) for GET requests.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace