System.Tether.Manager.TTetheringProfiles.RegisterProfileProtocolAdapter
Delphi
class procedure RegisterProfileProtocolAdapter(const AProfileType: TTetheringProfileType; const AProtocol: TTetheringProtocolType; const AnAdapter: TTetheringAdapterType);
C++
__classmethod void __fastcall RegisterProfileProtocolAdapter(const System::UnicodeString AProfileType, const System::UnicodeString AProtocol, const System::UnicodeString AnAdapter);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringProfiles |
説明
指定されたプロファイル タイプ、プロトコル タイプ、アダプタ タイプを登録し、それらが一緒に動作することを示します。
プロファイル クラスを実装するユニットは、通常、それらユニットが実装するプロファイルを登録したすぐ後に、initialization セクション で、プロファイル、プロトコル、アダプタの組み合わせを登録します。
例外
RegisterProfileProtocolAdapter への呼び出しは、次の例外のいずれかを発生させます:
Exception | Exception.Message | シナリオ |
---|---|---|
プロファイル "<プロファイル タイプ>" は登録されていません |
|