Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 3.72 KB

File metadata and controls

57 lines (44 loc) · 3.72 KB
title IAppHostProperty Interface
description The IAppHostProperty interface represents a property of a configuration element. This article describes its syntax, methods, properties, example, and requirements.
ms.date 10/07/2016
ms.assetid 8cb03b60-3a5c-d308-1532-9f625ec1c5ec

IAppHostProperty Interface

Represents a property of a configuration element.

Syntax

interface IAppHostProperty : IUnknown  

Methods

The following table lists the methods exposed by the IAppHostProperty interface.

Method Description
Clear Removes the current property from the XML persisted by the configuration system.
GetMetadata Gets metadata values for the current property.
SetMetadata Sets metadata for the current property.

Properties

The following table lists the properties exposed by the IAppHostProperty interface.

Property Description
Name Gets the name of the property.
Exception Gets an exception if the current property value does not meet the validation criteria specified in the property schema.
Schema Gets the schema assigned to the current property.
StringValue Gets the persisted string value of the property that is stored in XML by the configuration system.
Value Gets or sets the value of the current property.

Example

The following code example reads the value of the enabled attribute by using the IAppHostProperty::Value property.

[!code-cppIAppHostAdminLibrary#2]

Inheritance Hierarchy

IUnknown

IAppHostProperty

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

Application Host Administration Interfaces
IAppHostElement Interface