System.Tether.Manager.TTetheringAdapters.RegisterAdapter
Delphi
class procedure RegisterAdapter(const AnAdapter: TTetheringAdapterClass; const AType: TTetheringAdapterType);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure | public | System.Tether.Manager.pas | System.Tether.Manager | TTetheringAdapters |
説明
アダプタ種別と、指定された種類のアダプタを実装したクラスを登録します。
アダプタ クラスを実装するユニットでは通常、これらのクラスを initialization セクションで登録します。
アダプタ種別とそれに対応するアダプタ クラスを登録すると、そのアダプタ種別は Adapters のリストに追加されます。GetAdapterInstance を呼び出すと、アダプタ種別に関連づけられているアダプタ クラスを取得できます。
UnRegisterAdapter を呼び出すと、既に登録されている、アダプタ種別とアダプタ クラスのペアを登録解除できます。
関連項目
- プログラムとユニット(「initialization セクション」)