共用方式為


Configuration 類別

定義

表示特定電腦、應用程式或資源的組態檔。

public ref class Configuration sealed
public sealed class Configuration
type Configuration = class
Public NotInheritable Class Configuration
繼承
Configuration

備註

此類別無法獲得繼承。 組態會儲存在Administration.config、ApplicationHost.config和Web.Config檔案中。 這個類別可讓您自訂群組態檔。

屬性

RootSectionGroup

取得這個 Configuration 物件的根組態區段群組。

方法

GetEffectiveSectionGroup()

取得組態檔的有效區段群組。

GetLocationPaths()

取得組態檔中所指定之所有位置路徑的陣列。

GetMetadata(String)

從 IIS 7 組態系統取得中繼資料。

GetSection(String)

使用指定的區段路徑傳回組態區段。

GetSection(String, String)

使用指定的區段和位置路徑傳回組態區段。

GetSection(String, Type)

使用指定的區段路徑傳回強型別組態區段。

GetSection(String, Type, String)

使用指定的區段和位置路徑,傳回強型別組態區段。

RemoveLocationPath(String)

從目前的組態檔中移除位置路徑。

RenameLocationPath(String, String)

重新命名組態檔中的位置。

SetMetadata(String, Object)

設定 IIS 7 組態系統中的中繼資料。

事件

CacheInvalidated

發生于組態快取已失效時。

適用於