API:System.Tether.AppProfile.TTetheringAppProfile.Connect

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

Delphi

function Connect(const AProfile: TTetheringProfileInfo; const AProtocolType: TTetheringProtocolType = '';  const AnAdapterType: TTetheringAdapterType = ''): Boolean; overload; override;
function Connect(const AProfile: TTetheringProfileInfo; ATimeout: Integer; const AProtocolType: TTetheringProtocolType = '';  const AnAdapterType: TTetheringAdapterType = ''): Boolean; overload; override;

C++

virtual bool __fastcall Connect(const System::Tether::Manager::TTetheringProfileInfo &AProfile, const System::UnicodeString AProtocolType = System::UnicodeString(), const System::UnicodeString AnAdapterType = System::UnicodeString())/* overload */;
virtual bool __fastcall Connect(const System::Tether::Manager::TTetheringProfileInfo &AProfile, int ATimeout, const System::UnicodeString AProtocolType = System::UnicodeString(), const System::UnicodeString AnAdapterType = System::UnicodeString())/* overload */;

プロパティ

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

説明

プロファイルと指定されたリモート プロファイルの間に接続を確立します。

System.Tether.AppProfile.TTetheringAppProfile.Connect は System.Tether.Manager.TTetheringProfile.Connect を継承しています。以下の内容はすべて System.Tether.Manager.TTetheringProfile.Connect を参照しています。


プロファイルと指定されたリモート プロファイルの間に接続を確立します。

接続のプロトコルAProtocolType)やアダプタ(AnAdapterType)の特定のタイプを指定することができます。そうでなければ、接続は、AProfile利用可能な接続を使用します。

接続がすでに作業している場合、Connect は接続を再開始します。

接続の実装

Connect は、抽象メソッドです。 Connect は、TTetheringProfile のサブクラスで実装することができます。

Connect の実装は、接続が成功した場合には True、接続が失敗した場合には False を返さなければなりません。

接続が成功した場合、Connect の実装では、 AProfile接続されたリモート プロファイルのリストに追加しなければなりません。

関連項目