System.Tether.AppProfile.TTetheringAppProfile.RunRemoteActionAsync

提供:RAD Studio API Documentation

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット 親
function public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile TTetheringAppProfile


説明

指定されたリモート アクションを非同期的に実行するように要求し、非同期リモート ハンドルを返します。

次のパラメータのどちらかでリモート アクションを指定できます。

RunRemoteActionAsync は非同期関数です。この関数では、リモート プロファイルへの要求を実行します。リモート アクションが終了すると、OnASyncRemoteActionEnd イベントがトリガされます。

例外

RunRemoteActionAsync を呼び出すと、次の例外が発生する可能性があります。

例外 例外の Message プロパティ シナリオ

ETetheringException

アクション <アクション名> のプロファイルが見つかりません

関連項目