ApplicationElementDefaults Class [IIS 7 and higher]

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

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

Application Class [IIS 7 and higher]

ApplicationPool Class [IIS 7 and higher]

EmbeddedObject Class [IIS 7 and higher]