Mono Class Library: System.Net.WebResponse Overview | MembersSystem.Net.WebResponse.ContentLength Property |
Gets or sets the content length of the data received from the server. [Edit]
|
A long containing the number of bytes returned from the resource. [Edit]
Type Reason NotSupportedException This property is not implemented in the derived class. [Edit]
Operation
This property contains the number of bytes of data in the response to the request associated with the current instance. For request methods that contain header information, the WebResponse.ContentLength does not include the length of the header information. The value of this property is set by the Content-Length header received in the response.The System.Net.WebResponse class is abstract and does not provide an implementation for this property. This property throws NotSupportedException.
Note to Inheritors
This property is required to be overridden by classes that inherit from System.Net.WebResponse to set the content length as appropriate for the derived class.Usage
Use this property to determine the number of bytes in the response. [Edit]
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0