| title | IAppHostConfigFile::Locations Property |
|---|---|
| description | IAppHostConfigFile::Locations Property returns a collection of [IAppHostConfigLocatio interfaces that represent location tags defined for the current configuration file. |
| ms.date | 10/07/2016 |
| ms.assetid | 731ea11c-d7af-219c-4936-9bb386f71625 |
Returns a collection of IAppHostConfigLocation interfaces that represent location tags defined for the current configuration file.
HRESULT get_Locations(
[out,
retval] IAppHostConfigLocationCollection** ppLocations
); ppLocations
A pointer to a pointer for an IAppHostConfigLocationCollection interface.
An HRESULT. Possible values include, but are not limited to, those in the following table.
| Value | Description |
|---|---|
| S_OK | Indicates that the operation was successful. |
If the operation is successful, the collection returned in the ppLocations parameter will contain a pointer to an IAppHostConfigLocation interface for each location tag in the current configuration file.
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Ahadmin.h |
IAppHostConfigFile Interface
IAppHostConfigLocation Interface
IAppHostConfigLocationCollection Interface