Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 2.78 KB

File metadata and controls

45 lines (36 loc) · 2.78 KB
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

IAppHostConfigFile::Locations Property

Returns a collection of IAppHostConfigLocation interfaces that represent location tags defined for the current configuration file.

Syntax

HRESULT get_Locations(  
   [out,  
   retval] IAppHostConfigLocationCollection** ppLocations  
);  

Parameters

ppLocations
A pointer to a pointer for an IAppHostConfigLocationCollection interface.

Return Value

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.

Remarks

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.

Requirements

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

See Also

IAppHostConfigFile Interface
IAppHostConfigLocation Interface
IAppHostConfigLocationCollection Interface