REST.Client.TCustomRESTRequest.AddFile

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
public
REST.Client.pas
REST.Client.hpp
REST.Client TCustomRESTRequest


Beschreibung

Fügt der Anforderung Dateiinhalt hinzu.

Diese Methode ist überladen:

  • Wenn bei der ersten überladenen AddFile-Methode derselbe AName-Parameter bereits vorhanden ist, wird der vorherige Inhalt durch neuen ersetzt.
  • Bei der zweiten überladenen AddFile-Methode kann nur eine Datei hinzugefügt werden. Wird diese Funktion das zweite Mal ausgeführt, wird der vorherige Inhalt durch neuen Inhalt ersetzt.

Siehe auch