System.Tether.AppProfile.TTetheringAppProfile.RunRemoteActionAsync
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 :
- Fournissez une instance de TRemoteAction (
AnAction
). - Fournissez le profil distant qui contient l'action distante (
AProfile
) et le nom de l'action distante (AnActionName
).
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 |
---|---|---|
Impossible de trouver le profil pour l'action <nom d'action> |
|
Voir aussi
- System.Tether.AppProfile.TTetheringAppProfile.GetRemoteActionAsyncState
- System.Tether.AppProfile.TTetheringAppProfile.OnASyncRemoteActionEnd
- System.Tether.AppProfile.TRemoteAction
- System.Tether.AppProfile.TCustomRemoteItem.Name
- System.Tether.Manager.TTetheringProfileInfo
- System.Tether.AppProfile.TTetheringAppProfile.RunRemoteAction
- Ecriture d'applications multithread