WebTestResponse.BodyString Property
Gets a string version of the response body for responses with text, HTML, or XML content types.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property BodyString As String
'Usage
Dim instance As WebTestResponse
Dim value As String
value = instance.BodyString
public string BodyString { get; }
public:
property String^ BodyString {
String^ get ();
}
public function get BodyString () : String
Property Value
Type: System.String
The response body. This returns nulla null reference (Nothing in Visual Basic) if there is not a body or the content type is not text, HTML, or XML.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.