Share via


HttpListenerRequest.ContentLength64 Property

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

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

Syntax

public long ContentLength64 { get; }

Property Value

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

Remarks

The ContentLength expresses the length, in bytes, of the body data that accompanies the request.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

HttpListenerRequest Class
HttpListenerRequest Members
System.Net Namespace