HttpRequest.ContentLength HttpRequest.ContentLength HttpRequest.ContentLength HttpRequest.ContentLength Property

定義

指定用戶端送出的內容長度,以位元組為單位。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

屬性值

用戶端所送出的內容長度 (以位元組為單位)。The length, in bytes, of content sent by the client.

範例

下列程式碼範例會指派給整數變數代表連入要求的內容長度的值。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
   

適用於