Mono Class Library: System.Net.WebRequest Overview | MembersSystem.Net.WebRequest.ContentLength Property |
Gets or sets the content length of the request data being sent. [Edit]
|
A long containing the number of bytes of request data being sent. [Edit]
Type Reason NotSupportedException This property is not implemented in the derived class. [Edit] InvalidOperationException Data has already been written to the request stream. [Edit] ArgumentOutOfRangeException This property is being set to a value less than zero. [Edit]
Operation
This property is required to throw a InvalidOperationException exception if data has already been written to the request stream, and a ArgumentOutOfRangeException exception if the property is being set to a value less than zero.This property throws NotSupportedException.
Note to Inheritors
This property is required to be overridden by classes that inherit from System.Net.WebRequest.Usage
Use this property to get the number of bytes sent to the resource. [Edit]
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0