.NET Framework 4.6 and 4.5
Gets the length of the content returned by the request.
(in System.dll) System.Net.Requests
abstract ContentLength : int64 with get
override ContentLength : int64 with get
Type: System.Int64The number of bytes returned by the request. Content length does not include header information.
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.
The following example displays the value of this property.
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8