Freigeben über


WebTestRequest.Body-Eigenschaft

Ruft den Text dieser Anforderung ab oder legt ihn fest.

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)

Eigenschaftswert

Typ: Microsoft.VisualStudio.TestTools.WebTesting.IHttpBody
Ein IHttpBody-Objekt.

Hinweise

Der Text sollte bei GET-Anforderungen nullein Nullverweis (Nothing in Visual Basic) sein.

.NET Framework-Sicherheit

Siehe auch

Referenz

WebTestRequest Klasse

Microsoft.VisualStudio.TestTools.WebTesting-Namespace