次の方法で共有


healthMonitoring の profiles 要素 (ASP.NET 設定スキーマ)

更新 : 2007 年 11 月

イベント構成時に使用できるパラメータ セットのコレクションを定義します。

この要素は、.NET Framework Version 2.0 で追加されました。

<configuration> 要素
  system.web 要素 (ASP.NET 設定スキーマ)
    healthMonitoring 要素 (ASP.NET 設定スキーマ)
      healthMonitoring の profiles 要素 (ASP.NET 設定スキーマ)

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

属性と要素

以降のセクションでは、属性、子要素、および親要素について説明します。

属性

なし。

子要素

要素

説明

add

省略可能な要素

プロファイル コレクションにプロファイルを追加します。

clear

省略可能な要素

プロファイル コレクションからすべてのプロファイルを削除します。

remove

省略可能な要素

指定されたプロファイルをプロファイル コレクションから削除します。

親要素

要素

説明

configuration

共通言語ランタイムおよび .NET Framework アプリケーションで使用されるすべての構成ファイルで必要なルート要素を指定します。

system.web

ASP.NET 構成セクションのルート要素を指定します。

healthMonitoring

状態の監視に対応したアプリケーションを構成します。

解説

profiles 要素を使用すると、イベントの構成に使用するパラメータ セットを収集できます。セットごとにプロファイルが定義されます。

既定の構成

次の既定の profiles 要素は、.NET Framework Version 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 Version 2.0

Microsoft Visual Studio 2005

参照

処理手順

方法 : ASP.NET 構成設定をロックする

概念

ASP.NET 構成の概要

ASP.NET Web サーバー コントロールとブラウザの機能

ASP.NET 構成の保護

ASP.NET の構成のシナリオ

参照

healthMonitoring 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles の add 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles の remove 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles の clear 要素 (ASP.NET 設定スキーマ)

System.Configuration

System.Web.Configuration

その他の技術情報

ASP.NET 構成ファイル

ASP.NET 構成設定

全般構成設定 (ASP.NET)

ASP.NET 構成 API