HttpWebResponse.ContentLength Property
Gets the length of the content returned by the request.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
public override long ContentLength { get; }
Property Value
The number of bytes returned by the request. Content length does not include header information.
Remarks
This property contains the value of the Content-Length header that is returned with the response. If the Content-Length header is not set in the response, this property is set to -1.
Version Information
Available in the .NET Micro Framework versions 4.0 and 4.1.
See Also
Reference
HttpWebResponse Class
HttpWebResponse Members
System.Net Namespace