Web.HTTPApp.TWebResponse.ContentLength

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property ContentLength: Integer index 0 read GetIntegerVariable write SetIntegerVariable;

C++

__property int ContentLength = {read=GetIntegerVariable, write=SetIntegerVariable, index=0, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebResponse

説明

Content プロパティの長さ(バイト単位)を指定します。

ContentLength プロパティには,Content プロパティの長さがわかっている場合,その値を設定します。Content プロパティの長さがわからない場合,またはレスポンスメッセージに内容が含まれていない場合は,ContentLength を 0 に設定します。Web クライアントは,HTTP レスポンスメッセージの内容を読み取る際に ContentLength を使用します。

レスポンスメッセージの内容をストリームから得る場合は,ContentLength プロパティの値はそのストリームから設定されます。

関連項目