現在の要求のメモリ プール内にメモリを割り当てます。
構文
class IModuleAllocator
メソッド
次の表に、 インターフェイスによって公開されるメソッドの一覧を IModuleAllocator 示します。
| 名前 | 説明 |
|---|---|
| AllocateMemory | 指定した量のメモリを割り当てます。 |
解説
IIS は、HTTP モジュールの IModuleAllocatorIHttpModuleFactory インターフェイスの GetHttpModule メソッドにインターフェイスを作成して渡します。 AllocateMemory メソッドを使用すると、ヒープにメモリを割り当てるのではなく、要求のメモリ プールにメモリを割り当てることができます。
要件
| Type | 説明 |
|---|---|
| Client | - 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 |
| 製品 | - 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 |
| Header | Httpserv.h |
参照
Web Server Core インターフェイス
IHttpModuleFactory インターフェイス
IHttpModuleFactory::GetHttpModule メソッド