ConfigurationElement.IsLocallyStored Property

IIS 7.0
 

Gets a value indicating whether the configuration element is stored in a particular configuration file.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public bool IsLocallyStored { get; }

Property Value

Type: System.Boolean

true if the configuration element is stored in the current file; false if the configuration element is defined in another configuration file.

Configuration data for IIS 7 is stored in hierarchical configuration files. A configuration element may be defined at a computer level, an application host level, or a Web configuration level. When a request is made to read a configuration element, these hierarchical configuration files are merged and the configuration system returns one configuration collection. You can determine whether the configuration element is stored in a particular file by using the IsLocallyStored property. This property will get a value of true if the configuration element is stored in the current file; otherwise, it will get a value of false.

Return to top
Show: