This topic has not yet been rated - Rate this topic

Configuration Class

IIS 7.0

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

System..::..Object
  Microsoft.Web.Administration..::..Configuration

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
public sealed class Configuration

The Configuration type exposes the following members.

  Name Description
Public property RootSectionGroup Gets the root configuration section group for this Configuration object.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEffectiveSectionGroup Gets the effective section groups for the configuration file.
Public method GetHashCode (Inherited from Object.)
Public method GetLocationPaths Gets an array of all location paths that are specified in the configuration file.
Public method GetMetadata Gets metadata from the IIS 7 configuration system.
Public method GetSection(String) Returns the configuration section by using the specified section path.
Public method GetSection(String, String) Returns the configuration section by using the specified section and location paths.
Public method GetSection(String, Type) Returns a strongly typed configuration section by using the specified section path.
Public method GetSection(String, Type, String) Returns a strongly typed configuration section by using the specified section and location paths.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveLocationPath Removes a location path from the current configuration file.
Public method RenameLocationPath Renames the location in the configuration file.
Public method SetMetadata Sets metadata in the IIS 7 configuration system.
Public method ToString (Inherited from Object.)
Top
  Name Description
Public event CacheInvalidated Occurs when the configuration cache has been invalidated.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ