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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
説明
指定されたリモート アクションを非同期的に実行するように要求し、非同期リモート ハンドルを返します。
次のパラメータのどちらかでリモート アクションを指定できます。
- TRemoteAction のインスタンス(
AnAction
)。 - リモート アクションが含まれているリモート プロファイル(
AProfile
)と、リモート アクションの名前(AnActionName
)。
RunRemoteActionAsync は非同期関数です。この関数では、リモート プロファイルへの要求を実行します。リモート アクションが終了すると、OnASyncRemoteActionEnd イベントがトリガされます。
例外
RunRemoteActionAsync を呼び出すと、次の例外が発生する可能性があります。
例外 | 例外の Message プロパティ | シナリオ |
---|---|---|
アクション <アクション名> のプロファイルが見つかりません |
|
関連項目
- 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
- マルチスレッド アプリケーションの作成