Export (0) Print
Expand All

profiles Element for healthMonitoring (ASP.NET Settings Schema) 

Defines a collection of parameter sets to use when configuring events.

This element is new in the .NET Framework version 2.0.


<profiles>
     <add... />
     <remove... />
     <clear... />
</profiles>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

add

Optional element.

Adds a profile to the profile collection.

clear

Optional element.

Removes all profiles from the profile collection.

remove

Optional element.

Removes the specified profile from the profile collection.

Parent Elements

Element Description

configuration

Specifies the required root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

healthMonitoring

Configures an application for health monitoring.

The profiles element lets you collect sets of parameters for configuring events. Each set defines a profile.

The following default profiles element is configured in the root Web.config file in the .NET Framework version 2.0.

<profiles>
    <add name="Default" minInstances="1" maxLimit="Infinite" minInterval="00:01:00" custom="" />
    <add name="Critical" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" custom="" />
</profiles>

The following code example shows how to configure a profile.

<healthMonitoring Enabled="true" heartBeatInterval="0">

  <profiles>
    <add name="Default"
      minInstances="1"
      maxLimit="Infinite"
      minInterval="00:01:00"/>
  </profiles>

</healthMonitoring>

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

System.Web.Configuration.HealthMonitoringSection.Profiles

Configurable locations

Machine.config

Root-level Web.config

Application-level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 5.0, 5.1, or 6.0

The .NET Framework version 2.0

Microsoft Visual Studio 2005

Community Additions

ADD
Show:
© 2015 Microsoft