Share via


WebTestResponse.BodyBytes Property

Gets the raw bytes of the HTTP response body.

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

Syntax

'Declaration
Public ReadOnly Property BodyBytes As Byte()
'Usage
Dim instance As WebTestResponse 
Dim value As Byte()

value = instance.BodyBytes
public byte[] BodyBytes { get; }
public:
property array<unsigned char>^ BodyBytes {
    array<unsigned char>^ get ();
}
public function get BodyBytes () : byte[]

Property Value

Type: array<System.Byte[]
A byte array representing the HTTP response body.

Remarks

The headers are not included in BodyBytes.

.NET Framework Security

See Also

Reference

WebTestResponse Class

WebTestResponse Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace