共用方式為


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

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

<remove name="profile name">

屬性和項目

下列各節將說明屬性、子項目和父項目。

屬性

屬性

描述

name

必要的 String 屬性。

要移除的設定檔名稱。

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

子項目

無。

父項目

項目

描述

configuration

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

system.web

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

healthMonitoring

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

範例

下列範例示範如何從集合中刪除特定的設定檔。

<healthMonitoring>
  <profiles>
    <remove name="Default"/>
  </profiles>
</healthMonitoring>

項目資訊

組態區段處理常式

System.Web.Configuration.HealthMonitoringSection

組態成員

HealthMonitoringSection.Profiles

可設定的位置

Machine.config

根層次 Web.config

應用程式層級 Web.config

需求

IIS 5.0 (含) 以後版本

.NET Framework 2.0

Visual Studio 2005

請參閱

工作

HOW TO:鎖定 ASP.NET 組態設定

參考

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

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

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

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

System.Configuration

System.Web.Configuration

概念

ASP.NET 組態概觀

ASP.NET Web 伺服器控制項和瀏覽器能力

保護 ASP.NET 組態

ASP.NET 組態案例

其他資源

ASP.NET 組態檔

ASP.NET 組態設定

一般組態設定 (ASP.NET)

ASP.NET 組態 API