System.Tether.Manager.TTetheringAdapters.RegisterAdapter

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

Delphi

class procedure RegisterAdapter(const AnAdapter: TTetheringAdapterClass; const AType: TTetheringAdapterType);

C++

__classmethod void __fastcall RegisterAdapter(const TTetheringAdapterClass AnAdapter, const System::UnicodeString AType);

プロパティ

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


説明

アダプタ種別と、指定された種類のアダプタを実装したクラスを登録します。

アダプタ クラスを実装するユニットでは通常、これらのクラスを initialization セクションで登録します。

アダプタ種別とそれに対応するアダプタ クラスを登録すると、そのアダプタ種別は Adapters のリストに追加されます。GetAdapterInstance を呼び出すと、アダプタ種別に関連づけられているアダプタ クラスを取得できます。

UnRegisterAdapter を呼び出すと、既に登録されている、アダプタ種別とアダプタ クラスのペアを登録解除できます。

関連項目