Condividi tramite


Metodo IAppHostConfigLocationCollection::AddLocation

Aggiunge una nuova posizione di configurazione alla raccolta.

Sintassi

HRESULT AddLocation(  
   [in,  
   string] BSTR bstrLocationPath,  
   [out,  
   retval] IAppHostConfigLocation** ppNewLocation  
);  

Parametri

bstrLocationPath
Oggetto BSTR contenente il percorso del nuovo percorso di configurazione.

ppNewLocation
Puntatore a un puntatore per un'interfaccia IAppHostConfigLocation .

Valore restituito

Oggetto HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Valore Descrizione
S_OK Indica che l'operazione è riuscita.
ERROR_ALREADY_EXISTS Indica che la posizione esiste già.

Requisiti

Tipo Descrizione
Client - IIS 7.0 in Windows Vista
- IIS 7.5 in Windows 7
- IIS 8.0 in Windows 8
- IIS 10.0 in Windows 10
Server - IIS 7.0 in Windows Server 2008
- IIS 7.5 in Windows Server 2008 R2
- IIS 8.0 in Windows Server 2012
- IIS 8.5 in Windows Server 2012 R2
- IIS 10.0 in Windows Server 2016
Prodotto - 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
Intestazione Ahadmin.h

Vedere anche

Interfaccia IAppHostConfigLocationCollection