Share via


WebResponse.ContentLength Property

When overridden in a descendant class, gets or sets the content length of data being received.

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

Syntax

public virtual long ContentLength { get; set; }

Property Value

The number of bytes returned from the Internet resource.

Version Information

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

See Also

Reference

WebResponse Class
WebResponse Members
System.Net Namespace