Configuration Configuration Configuration 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
ConfigurationConfigurationConfigurationConfiguration

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 RootSectionGroup RootSectionGroup RootSectionGroup

Gets the root configuration section group for this Configuration object.

Methods

GetEffectiveSectionGroup() GetEffectiveSectionGroup() GetEffectiveSectionGroup() GetEffectiveSectionGroup()

Gets the effective section groups for the configuration file.

GetLocationPaths() GetLocationPaths() GetLocationPaths() GetLocationPaths()

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

GetMetadata(String) GetMetadata(String) GetMetadata(String) GetMetadata(String)

Gets metadata from the IIS 7 configuration system.

GetSection(String) GetSection(String) GetSection(String) GetSection(String)

Returns the configuration section by using the specified section path.

GetSection(String, String) GetSection(String, String) GetSection(String, String) GetSection(String, String)

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

GetSection(String, Type) GetSection(String, Type) GetSection(String, Type) GetSection(String, Type)

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

GetSection(String, Type, String) GetSection(String, Type, String) GetSection(String, Type, String) GetSection(String, Type, String)

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

RemoveLocationPath(String) RemoveLocationPath(String) RemoveLocationPath(String) RemoveLocationPath(String)

Removes a location path from the current configuration file.

RenameLocationPath(String, String) RenameLocationPath(String, String) RenameLocationPath(String, String) RenameLocationPath(String, String)

Renames the location in the configuration file.

SetMetadata(String, Object) SetMetadata(String, Object) SetMetadata(String, Object) SetMetadata(String, Object)

Sets metadata in the IIS 7 configuration system.

Events

CacheInvalidated CacheInvalidated CacheInvalidated CacheInvalidated

Occurs when the configuration cache has been invalidated.

Applies to