在给定应用程序站点 ID 和配置文件路径的情况下,将应用程序预加载到服务器内存中。
语法
virtual HRESULT PreloadApplication(
IN DWORD dwSiteId,
IN PCWSTR pszAppConfigPath,
IN BOOL fRecycledWorkerProcess = FALSE
) = 0;
parameters
dwSiteId
[IN]应用程序网站的 ID。
pszAppConfigPath
[IN]应用程序配置文件的路径。
fRecycledWorkerProcess
[IN]指示是否回收与应用程序关联的工作进程。
返回值
HRESULT
。 可能的值包括(但并不限于)下表中的项。
值 | 说明 |
---|---|
S_OK | 指示操作成功。 |
要求
类型 | 说明 |
---|---|
客户端 | - 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 | Wpframework.h |