Share via


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

從集合移除指定的狀況監視提供者。

<remove name="provider name">

屬性和項目

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

屬性

屬性

描述

name

必要的 String 屬性。

要從集合中移除的提供者名稱。

NoteNote
無法提供有效的名稱時,將不會在執行階段產生組態錯誤。

子項目

無。

父項目

項目

描述

configuration

Common Language Runtime 和 .NET Framework 應用程式所使用之每個組態檔中的根項目。

system.web

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

healthMonitoring

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

範例

下列範例示範如何從集合中移除特定提供者。

<healthMonitoring>
  <providers>
    <remove name="EventLogProvider"/>
  </providers>
</healthMonitoring>

項目資訊

Configuration Section Handler

System.Web.Configuration.HealthMonitoringSection

Configuration Member

HealthMonitoringSection.Providers

Configurable Locations

Machine.config

根層次 Web.config

應用程式層級 Web.config

Requirements

網際網路資訊服務 (IIS) 5.0 版 (含) 以後版本

.NET Framework 2.0 版

Visual Studio 2005

請參閱

工作

How to: Lock ASP.NET Configuration Settings

參考

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

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

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

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

Configuration

System.Configuration

System.Web.Configuration

System.Web.Management

概念

ASP.NET Health Monitoring Overview

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