共用方式為


IAppHostPathMapper2 介面

提供當伺服器通知用戶端階層對應決策時,伺服器實作所呼叫的方法。

Syntax

interface IAppHostPathMapper2 : IUnknown  

方法

下表列出 介面所 IAppHostPathMapper2 公開的方法。

方法 描述
IAppHostPathMapper2::MapPath 方法 將 IIS 7 組態路徑對應至自訂檔案系統路徑。

屬性

此介面不包含任何屬性。

備註

若要接收此介面的傳入遠端呼叫,用戶端必須實作 UUID (0f80e901-8f4c-449a-bf90-13d5d082f187) 。 然後,用戶端必須指定物件,以 「pathMapper2」 的 ,實作 IAppHostAdminManager::SetMetadata 方法 方法的 介面 bstrMetadataName

當系統管理系統將階層路徑對應至伺服器上的實體路徑時,它會選擇性地呼叫實作 IAppHostPathMapper2 介面的用戶端提供物件。 此介面的實作器會接收所有對應的詳細資料,並視需要變更每個對應的結果。

注意

介面 IAppHostPathMapper2 的設計目的是在本機電腦上運作;您無法使用此介面來管理遠端電腦。

繼承階層架構

IUnknown

IAppHostPathMapper2

規格需求

類型 描述
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
標頭 Ahadmin.h

另請參閱

應用程式主機管理介面
應用程式主機管理 API 參考