Redigera

Dela via


HttpRequest.ContentLength Property

Definition

Specifies the length, in bytes, of content sent by the client.

public:
 property int ContentLength { int get(); };
public int ContentLength { get; }
member this.ContentLength : int
Public ReadOnly Property ContentLength As Integer

Property Value

The length, in bytes, of content sent by the client.

Examples

The following code example assigns the value representing the content length of the incoming request to an integer variable.

int len;
len = Request.ContentLength;

Dim len As Integer
len = Request.ContentLength
   

Applies to