Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.42 KB

File metadata and controls

45 lines (35 loc) · 2.42 KB
title IAppHostConfigFile::RootSectionGroup Property
description Learn how the RootSectionGroup property returns the root configuration section group for the current configuration file.
ms.date 10/07/2016
ms.assetid 573e8780-9720-d1ae-4876-8d3d1d106aae

IAppHostConfigFile::RootSectionGroup Property

Returns the root configuration section group for the current configuration file.

Syntax

HRESULT get_RootSectionGroup(  
   [out,  
   retval] IAppHostSectionGroup** ppSectionGroups  
);  

Parameters

ppSectionGroups
A pointer to a pointer for an IAppHostSectionGroup 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.

Example

The following code example demonstrates how to use the root section group to access the configuration system. The sample assumes that you have registered the mySectionGroup section group and myNewSection section name in the section table and configuration schema.

[!code-cppIAppHostAdminLibrary#8]

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