Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.13 KB

File metadata and controls

45 lines (35 loc) · 2.13 KB
title IAppHostElement::Name Property
description The IAppHostElementName property gets the name of the current element. This article describes its syntax, return value, example, and requirements.
ms.date 10/07/2016
ms.assetid 160b5e71-ac79-9d7d-1c7e-880e191967e2

IAppHostElement::Name Property

Gets the name of the current element.

Syntax

HRESULT Name(  
   [out,  
   retval] BSTR* pbstrName  
);  

Parameters

pbstrName
A pointer to a BSTR that contains name of the current element.

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 displays all child elements of the system.webServer/asp configuration section for the MACHINE/WEBROOT/APPHOST configuration path.

[!code-cppIAppHostAdminLibrary#1]

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

IAppHostElement Interface