Share via


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)

Syntax

'Declaration
Public ReadOnly Property ContentLength64 As Long
public long ContentLength64 { get; }
public:
property long long ContentLength64 {
    long long get ();
}
member ContentLength64 : int64 with get
function get ContentLength64 () : long

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.

Remarks

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.

.NET Framework Security

See Also

Reference

HttpListenerRequest Class

System.Net Namespace