The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
WebTestResponse::ContentLength Property
Gets the length of the content that is returned by the request.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
public: property long long ContentLength { long long get(); internal: void set(long long value); }
Property Value
Type: System::Int64The number of bytes returned by the request. Content length does not include header information.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The current instance has been disposed. |
The ContentLength property contains the value of the Content-Length header returned with the response. If the Content-Length header is not set in the response, ContentLength is set to the value -1.
Show: