System.Tether.AppProfile.TTetheringAppProfile.Connect
Delphi
function Connect(const AProfile: TTetheringProfileInfo; const AProtocolType: TTetheringProtocolType = ''; const AnAdapterType: TTetheringAdapterType = ''): Boolean; override;
C++
virtual bool __fastcall Connect(const System::Tether::Manager::TTetheringProfileInfo &AProfile, const System::UnicodeString AProtocolType = System::UnicodeString(), const System::UnicodeString AnAdapterType = System::UnicodeString());
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
説明
指定されたリモート プロファイルへの接続を確立、または、既存の接続を再開します。
Connect は、Actions および Resources のコレクションの読み込みや更新、そして、プロファイル グループのマッチングのための、項目登録の更新を行います。
接続するためのリモート プロファイル(AProfile
)の他、接続で使用するプロトコルのタイプ(AProtocolType
)やアダプタのタイプ(AnAdapterType
)を任意で指定することができます。
「アプリケーション テザリングを使用したリモート アプリケーションへの接続」を参照してください。
例外
Connect への呼び出しは、次の例外のいずれかを発生させます:
Exception | Exception.Message | シナリオ |
---|---|---|
<プロファイル識別子> への使用可能な接続がありません |
||
<プロファイル識別子>に接続するためのプロトコルとアダプタを追加する必要があります |
| |
プロファイル <プロファイル識別子> のリソース リストが見つかりません |
これは、リモート プロファイル ( | |
プロファイル <プロファイル識別子> へ接続できません。 |
関連項目
- System.Tether.Manager.TTetheringProfileInfo
- System.Tether.Manager.TTetheringProtocolType
- System.Tether.Manager.TTetheringAdapterType
- System.Tether.AppProfile.TTetheringAppProfile.Actions
- System.Tether.AppProfile.TTetheringAppProfile.Resources
- System.Tether.Manager.TTetheringProfile.Group
- MediaPlayerサンプル
- PhotoWallサンプル