Gets or sets a value that specifies whether a change in an external configuration include file requires an application restart.
Public Property RestartOnExternalChanges As Boolean
Dim instance As SectionInformation Dim value As Boolean value = instance.RestartOnExternalChanges instance.RestartOnExternalChanges = value
public bool RestartOnExternalChanges { get; set; }
public: property bool RestartOnExternalChanges { bool get (); void set (bool value); }
public function get RestartOnExternalChanges () : boolean public function set RestartOnExternalChanges (value : boolean)
The selected value conflicts with a value that is already defined.
Set the RestartOnExternalChanges property to false to prevent an application restart when configuration settings in the external include file are modified for this ConfigurationSection object.
The following example shows how to get the RestartOnExternalChanges property value of a ConfigurationSection object.
Public Shared Sub RestartOnExternalChanges() Dim sInfo As SectionInformation = _ GetSectionInformation() Dim restartOnChange As Boolean = _ sInfo.RestartOnExternalChanges Console.WriteLine("Section type: {0}", _ restartOnChange.ToString()) End Sub 'RestartOnExternalChanges
static public void RestartOnExternalChanges() { SectionInformation sInfo = GetSectionInformation(); bool restartOnChange = sInfo.RestartOnExternalChanges; Console.WriteLine("Section type: {0}", restartOnChange.ToString()); }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
My testing has discovered this property isn't observed if you place the external config file in a sub folder of bin (e.g. <webroot>bin/Config/). Could be a design feature, but seems like a bug.