Share via


healthMonitoring 的 profiles 項目 (ASP.NET 設定結構描述)

定義當設定事件時可以使用的參數集集合。

這個項目是 .NET Framework 2.0 版中新增的項目。

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

屬性和項目

下列章節會說明屬性、子項目和父項目。

屬性

無。

子項目

項目

描述

add

選擇性項目。

將設定檔加入設定檔集合。

clear

選擇性項目。

從設定檔集合移除所有設定檔。

remove

選擇性項目。

將指定的設定檔從設定檔集合中移除。

父項目

項目

描述

configuration

指定 Common Language Runtime 和 .NET Framework 應用程式所使用之每個組態檔中需要的根項目 (Root Element)。

system.web

指定 ASP.NET 組態區段的根項目。

healthMonitoring

設定健康監視的應用程式。

備註

profiles 項目讓您收集設定事件的參數集。 每個參數集定義一個設定檔。

預設組態

下列預設 profiles 項目是在 .NET Framework 2.0 版中的根目錄 Web.config 檔中設定的。

<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>

範例

下列程式碼範例會示範如何設定設定檔。

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

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

</healthMonitoring>

項目資訊

組態區段處理常式

System.Web.Configuration.HealthMonitoringSection

組態成員

HealthMonitoringSection.Profiles

可設定的位置

Machine.config

根層次的 Web.config

應用程式層級的 Web.config

需求

Microsoft Internet Information Services (IIS) 5.0、5.1 或 6.0 版

.NET Framework 2.0 版

Microsoft Visual Studio 2005

請參閱

工作

How to: Lock ASP.NET Configuration Settings

參考

healthMonitoring 項目 (ASP.NET 設定結構描述)

healthMonitoring 設定檔的 add 項目 (ASP.NET 設定結構描述)

healthMonitoring 之 profiles 的 remove 項目 (ASP.NET 設定結構描述)

healthMonitoring 之 profiles 的 clear 項目 (ASP.NET 設定結構描述)

System.Configuration

System.Web.Configuration

概念

ASP.NET Configuration Overview

ASP.NET Server Controls and Browser Capabilities

Securing Configuration

Configuration Inheritance

其他資源

ASP.NET Configuration Files

ASP.NET 組態設定

一般組態設定 (ASP.NET)

ASP.NET Configuration API