ContentLength64 Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the length of the body data included in the request.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

public long ContentLength64 { get; }

Property Value

Type: System..::..Int64
The value from the request's Content-Length header. This value is -1 if the content length is not known.

The Content-Length header expresses the length, in bytes, of the body data that accompanies the request.

For a complete list of request headers, see the HttpRequestHeader enumeration.

Show: