共用方式為


IProcessHostSupportFunctions::GetApplicationProperties 方法

從應用程式的中繼基底擷取屬性。

語法

virtual HRESULT __stdcall GetApplicationProperties(  
   LPCWSTR appId,  
   BSTR* pbstrVirtualPath,  
   BSTR* pbstrPhysicalPath,  
   BSTR* pbstrSiteName,  
   BSTR* pbstrSiteId  
) = 0;  

參數

appId
包含應用程式唯一識別碼的字串。

pbstrVirtualPath
BSTR 指標,可接收應用程式的根虛擬路徑。

pbstrPhysicalPath
BSTR 指標,可接收應用程式的根實體路徑。

pbstrSiteName
接收 BSTR 應用程式顯示名稱之 的指標。

pbstrSiteId
接收月臺識別碼之 的指標 BSTR

傳回值

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
標頭 Webhost.h

另請參閱

IProcessHostSupportFunctions 介面