IConnectionPointContainerImpl クラス

このクラスは、IConnectionPointImpl オブジェクトのコレクションを管理するためのコネクション ポイント コンテナーを実装します。

構文

template<class T>
class ATL_NO_VTABLE IConnectionPointContainerImpl
   : public IConnectionPointContainer

パラメーター

T
IConnectionPointContainerImpl から派生したクラス。

メンバー

パブリック メソッド

名前 説明
IConnectionPointContainerImpl::EnumConnectionPoints 接続可能なオブジェクトでサポートされるコネクション ポイントを介して反復する列挙子を作成します。
IConnectionPointContainerImpl::FindConnectionPoint 指定した IID をサポートするコネクション ポイントへのインターフェイス ポインターを取得します。

解説

IConnectionPointContainerImpl によって、IConnectionPointImpl オブジェクトのコレクションを管理するためのコネクション ポイント コンテナーが実装されます。 IConnectionPointContainerImpl には、接続可能なオブジェクトに関する詳細を取得するためにクライアントが呼び出す 2 つのメソッドが用意されています。

  • EnumConnectionPoints を使用すると、オブジェクトがどの送信インターフェイスをサポートするかをクライアントが判別できます。

  • FindConnectionPoint を使用すると、オブジェクトが特定の送信インターフェイスをサポートするかどうかをクライアントが判別できます。

ATL でのコネクション ポイントの使用方法に関する詳細については、コネクション ポイントに関する記事を参照してください。

継承階層

IConnectionPointContainer

IConnectionPointContainerImpl

必要条件

ヘッダー: atlcom.h

IConnectionPointContainerImpl::EnumConnectionPoints

接続可能なオブジェクトでサポートされるコネクション ポイントを介して反復する列挙子を作成します。

STDMETHOD(EnumConnectionPoints)(IEnumConnectionPoints** ppEnum);

解説

Windows SDK の IConnectionPointContainer::EnumConnectionPoints に関する記事を参照してください。

IConnectionPointContainerImpl::FindConnectionPoint

指定した IID をサポートするコネクション ポイントへのインターフェイス ポインターを取得します。

STDMETHOD(FindConnectionPoint)(REFIID riid, IConnectionPoint** ppCP);

解説

Windows SDK の IConnectionPointContainer::FindConnectionPoint に関する記事を参照してください。

関連項目

IConnectionPointContainer
クラスの概要