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
'Usage
Dim instance As WebTestRequest 
Dim value As IHttpBody 

value = instance.Body

instance.Body = value
public IHttpBody Body { get; set; }
public:
property IHttpBody^ Body {
    IHttpBody^ get ();
    void set (IHttpBody^ value);
}
public function get Body () : IHttpBody 
public 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

WebTestRequest Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace