Share via


Configuration Class

Definition

Represents a configuration file for a particular computer, application, or resource.

public ref class Configuration sealed
public sealed class Configuration
type Configuration = class
Public NotInheritable Class Configuration
Inheritance
Configuration

Remarks

This class cannot be inherited. Configuration is stored within the Administration.config, ApplicationHost.config, and Web.Config files. This class enables you to customize the configuration files.

Properties

RootSectionGroup

Gets the root configuration section group for this Configuration object.

Methods

GetEffectiveSectionGroup()

Gets the effective section groups for the configuration file.

GetLocationPaths()

Gets an array of all location paths that are specified in the configuration file.

GetMetadata(String)

Gets metadata from the IIS 7 configuration system.

GetSection(String, String)

Returns the configuration section by using the specified section and location paths.

GetSection(String, Type, String)

Returns a strongly typed configuration section by using the specified section and location paths.

GetSection(String, Type)

Returns a strongly typed configuration section by using the specified section path.

GetSection(String)

Returns the configuration section by using the specified section path.

RemoveLocationPath(String)

Removes a location path from the current configuration file.

RenameLocationPath(String, String)

Renames the location in the configuration file.

SetMetadata(String, Object)

Sets metadata in the IIS 7 configuration system.

Events

CacheInvalidated

Occurs when the configuration cache has been invalidated.

Applies to