FileWebRequest::ContentLength Property
.NET Framework (current version)
Gets or sets the content length of the data being sent.
Assembly: System (in System.dll)
public: property long long ContentLength { virtual long long get() override; virtual void set(long long value) override; }
| Exception | Condition |
|---|---|
| ArgumentException | ContentLength is less than 0. |
The following code example sets the content length of the data being sent. Refer to the complete example in the FileWebRequest class.
.NET Framework
Available since 1.1
Available since 1.1
Show: