ApplicationElementDefaults Class2

Specifies the default application pool and enabled protocols for new applications.

Syntax

class ApplicationElementDefaults : EmbeddedObject  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the ApplicationElementDefaults class.

Name Description
ApplicationPool A read/write string value that specifies the default application pool for new applications. The default is "DefaultAppPool".
EnabledProtocols A read/write array of string values that contains the protocols that are enabled by default for new applications.
Path A read-only string value that specifies the default virtual path of the application after the host header. For example, if you have an application at http://www.alpineskihouse.com/Skis/Downhill, the value of the Path property is "/Skis/Downhill". A key property.

Subclasses

This class contains no subclasses.

Remarks

This class is exposed as the ApplicationDefaults property on the Server class and on the Site class, and corresponds to the <applicationDefaults> element in the ApplicationHost.config file.

Inheritance Hierarchy

EmbeddedObject

ApplicationElementDefaults

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- 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
MOF file WebAdministration.mof

See Also

Application Class
ApplicationPool Class
EmbeddedObject Class