System.Tether.AppProfile.TTetheringAppProfile.RunRemoteActionAsync

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function RunRemoteActionAsync(const AnAction: TRemoteAction): TRemoteActionHandle; overload;
function RunRemoteActionAsync(const AProfile: TTetheringProfileInfo; const AnActionName: string): TRemoteActionHandle; overload;

C++

NativeUInt __fastcall RunRemoteActionAsync(TRemoteAction* const AnAction)/* overload */;
NativeUInt __fastcall RunRemoteActionAsync(const System::Tether::Manager::TTetheringProfileInfo &AProfile, const System::UnicodeString AnActionName)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile TTetheringAppProfile


Description

Demande l'exécution asynchrone de l'action distante spécifiée et renvoie un gestionnaire distant asynchrone.

Vous pouvez spécifier une action distante avec l'un des paramètres suivants :

RunRemoteActionAsync est une fonction asynchrone. Cette fonction demande le profil distant. Lorsque l'action distante se termine, l'événement OnASyncRemoteActionEnd est déclenché.

Exceptions

Un appel à RunRemoteActionAsync peut déclencher l'exception suivante :

Exception Exception.Message Scénarios

ETetheringException

Impossible de trouver le profil pour l'action <nom d'action>

Voir aussi