Partager via


IAppHostConfigLocationCollection::Item, propriété

Obtient un emplacement de configuration à l’index demandé à partir de la collection actuelle.

Syntaxe

HRESULT get_Item(  
   [in] VARIANT varIndex,  
   [out,  
   retval] IAppHostConfigLocation** ppLocation  
);  

Paramètres

varIndex
VARIANT qui contient l’index de l’emplacement demandé.

ppLocation
Pointeur vers un pointeur pour une interface IAppHostConfigLocation .

Valeur renvoyée

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

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

Configuration requise

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

IAppHostConfigLocationCollection, interface