根據應用程式的月臺識別碼和組態檔路徑,將應用程式預先載入伺服器記憶體中。
語法
virtual HRESULT PreloadApplication(
IN DWORD dwSiteId,
IN PCWSTR pszAppConfigPath,
IN BOOL fRecycledWorkerProcess = FALSE
) = 0;
參數
dwSiteId
[IN]應用程式網站的識別碼。
pszAppConfigPath
[IN]應用程式組態檔的路徑。
fRecycledWorkerProcess
[IN]指出是否回收與應用程式相關聯的背景工作進程。
傳回值
HRESULT。 可能的值包括 (但不限於) 下表中的這些值。
| 值 | 描述 |
|---|---|
| S_OK | 表示作業成功。 |
規格需求
| 類型 | 描述 |
|---|---|
| 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 |
| 標頭 | Wpframework.h |