Partager via


IAppHostMappingExtension::MapPath, méthode

Mappe un site à un chemin physique, un répertoire virtuel et un chemin d’application à l’aide du nom du site et du chemin d’accès virtuel.

Syntaxe

HRESULT MapPath(  
   [in,  
   string] BSTR bstrSiteName,  
   [in,  
   string] BSTR bstrVirtualPath,  
   [out,  
   string] BSTR* pbstrPhysicalPath,  
   [out] IAppHostElement** ppVirtualDirectoryElement,  
   [out] IAppHostElement** ppApplicationElement  
);  

Paramètres

bstrSiteName
BSTR qui contient le nom du site.

bstrVirtualPath
BSTR qui contient le chemin d’accès virtuel.

pbstrPhysicalPath
Pointeur vers un BSTR qui contient le chemin physique.

ppVirtualDirectoryElement
Pointeur vers un pointeur pour une interface IAppHostElement .

ppApplicationElement
Pointeur vers un pointeur pour une interface IAppHostElement .

Valeur renvoyée

Élément HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

Valeur Description
S_OK Indique que l’opération a réussi.

Spécifications

Type Description
Client - IIS 7.0 sur Windows Vista
- IIS 7.5 sur Windows 7
- IIS 8.0 sur Windows 8
- IIS 10.0 sur Windows 10
Serveur - IIS 7.0 sur Windows Server 2008
- IIS 7.5 sur Windows Server 2008 R2
- IIS 8.0 sur Windows Server 2012
- IIS 8.5 sur Windows Server 2012 R2
- IIS 10.0 sur Windows Server 2016
Produit - 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
En-tête Ahadmin.h

Voir aussi

IAppHostMappingExtension, interface