System.Tether.Manager.TTetheringProfile.Connect

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

Delphi

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

C++

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

プロパティ

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


説明

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

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

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

接続の実装

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

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

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

関連項目