ConfigurationElement.IsLocallyStored Property

Definition

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

public:
 property bool IsLocallyStored { bool get(); };
public bool IsLocallyStored { get; }
member this.IsLocallyStored : bool
Public ReadOnly Property IsLocallyStored As Boolean

Property Value

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

Remarks

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.

Applies to