System.Tether.AppProfile.TTetheringAppProfile.RunRemoteAction

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function RunRemoteAction(const AnAction: TRemoteAction): Boolean; overload;
function RunRemoteAction(const AProfile: TTetheringProfileInfo; const AnActionName: string): Boolean; overload;

C++

bool __fastcall RunRemoteAction(TRemoteAction* const AnAction)/* overload */;
bool __fastcall RunRemoteAction(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


説明

指定されたリモート アクションの実行を要求し、実行が成功した場合には True を、エラーが発生した場合には False を返します。

リモート アクションは、以下のいずれかのパラメータで指定できます。

RunRemoteAction は、以下のいずれかのエラーが発生すると False を返します。

メモ: RunRemoteAction は、実行要求をリモート プロファイル送信する前に、クライアント側で確認を行います。そのため、これらの状況が発生することはおそらくありません。

RunRemoteAction は、同期関数です。 この関数は、リモート プロファイルへのリクエストを実行し、その関数の実行は、リモート プロファイルからレスポンスがあったときにのみ終了します。 RunRemoteActionAsync メソッドを使用したい場合もあるでしょう。

例外

RunRemoteAction への呼び出しは、次の例外のいずれかを発生させます:

Exception Exception.Message シナリオ

ETetheringException

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

<プロファイル識別子> への接続がありません。

  • リモート アクションのリモート プロファイルに、許可された接続がありません。

プロファイル <プロファイル識別子> へ接続できません。

  • RunRemoteAction がリモート アクションのリモート プロファイルへ接続できません。

関連項目