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 or sets the number of bytes in the body data included in the response.

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

Syntax

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

Property Value

Type: System. . :: . .Int64
The value of the response's Content-Length header.

Remarks

The Content-Length header expresses the length, in bytes, of the response's body data. When using a format that is not send the data chunked or raw, you must set the ContentLength64 property. If you do not, the HttpListener does not send the response data.

.NET Framework Security

See Also

Reference

HttpListenerResponse Class

System.Net Namespace