REST.Client.TCustomRESTRequest.AddFile

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

Delphi

procedure AddFile(const AName, AFileName: string; AContentType: TRESTContentType = TRESTContentType.ctNone); overload;
procedure AddFile(const AFileName: string; AContentType: TRESTContentType = TRESTContentType.ctNone);  overload;

C++

void __fastcall AddFile(const System::UnicodeString AName, const System::UnicodeString AFileName, Rest::Types::TRESTContentType AContentType = (Rest::Types::TRESTContentType)(0x0))/* overload */;
void __fastcall AddFile(const System::UnicodeString AFileName, Rest::Types::TRESTContentType AContentType = (Rest::Types::TRESTContentType)(0x0))/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
REST.Client.pas
REST.Client.hpp
REST.Client TCustomRESTRequest


説明

ファイル コンテンツをリクエストに追加します。

このメソッドは、以下のようにオーバーロードされています。

  • AddFile の第 1 オーバーロード メソッドを使用している場合、同じ AName パラメータがすでに存在していると、前のコンテンツは新しいものに置き換えられます。
  • AddFile の第 2 オーバーロード メソッドを使用している場合、ファイルは 1 つだけ追加できます。この関数が 2 度目に実行されると、前のコンテンツは新しいものに置き換えられます。

関連項目