IDispensedHttpModuleContextContainer インターフェイス

コンテナーを解放する機能を提供することで、 IHttpModuleContextContainer インターフェイスを拡張します。

構文

class IDispensedHttpModuleContextContainer : public IHttpModuleContextContainer  

メソッド

次の表に、IDispensedHttpModuleContextContainer クラスによって公開されるメソッドの一覧を示します。

名前 説明
GetModuleContext ( から継承されます)IHttpModuleContextContainer.)
ReleaseContainer コンテキスト コンテナーがディスペンスされた場合は削除します。
SetModuleContext (IHttpModuleContextContainer から継承。)

派生クラス

このクラスには派生クラスが含まれています。

解説

多くの IIS 7 クラスでは、 private IDispensedHttpModuleContextContainer ポインターがメンバー変数として保持されています。 これらのクラスは、 IHttpApplicationIHttpConnectionIHttpContextIHttpFileInfoIHttpSiteIHttpUrlInfoIMetadataInfo など、さまざまなインターフェイスを実装します。

これらの各インターフェイスは、引数を受け入れず、IHttpModuleContextContainer ポインターを返すGetModuleContextContainer メソッドを定義します。 さまざまな GetModuleContextContainer メソッドが呼び出されると、これらの実装者のほとんどは、 private データをアップキャスト IHttpModuleContextContainerとして返します。 これにより、インターフェイスの実装者は、これらのコンテナーの有効期間を維持しながら、カスタム コンテナーを公開できます。

注意事項

dynamic_cast演算子を使用してIHttpModuleContextContainerIDispensedHttpModuleContextContainerにダウンキャストするのは安全な操作ですが、このキャストは実行しないでください。 IDispensedHttpModuleContextContainer インターフェイスは、基本インターフェイスに ReleaseContainer メソッドを 1 つだけ追加します。このメソッドは内部でのみ呼び出す必要があります。

継承階層

IHttpModuleContextContainer

IDispensedHttpModuleContextContainer

要件

説明
クライアント - Windows Vista 上の IIS 7.0
- Windows 7 上の IIS 7.5
- Windows 8 上の IIS 8.0
- Windows 10 上の IIS 10.0
[サーバー] - Windows Server 2008 上の IIS 7.0
- Windows Server 2008 R2 上の IIS 7.5
- Windows Server 2012 上の IIS 8.0
- Windows Server 2012 R2 上の IIS 8.5
- Windows Server 2016 上の IIS 10.0
Product - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
ヘッダー Httpserv.h

参照

Web Server Core インターフェイス