0 out of 3 rated this helpful - Rate this topic

SectionInformation.RestartOnExternalChanges Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a value that specifies whether a change in an external configuration include file requires an application restart.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)

public bool RestartOnExternalChanges { get; set; 
/** @property */
public boolean get_RestartOnExternalChanges ()

/** @property */
public void set_RestartOnExternalChanges (boolean value)

public function get RestartOnExternalChanges () : boolean

public function set RestartOnExternalChanges (value : boolean)

Property Value

true if a change in an external configuration include file requires an application restart; otherwise, false. The default is true.

Set the RestartOnExternalChanges property to false to prevent an application restart upon modification of configuration settings in the external include file for this ConfigurationSection object.

The following example shows how to get the RestartOnExternalChanges property value of a ConfigurationSection object.

static public void RestartOnExternalChanges()
{
    SectionInformation sInfo =
        GetSectionInformation();

    bool restartOnChange = 
        sInfo.RestartOnExternalChanges;
    Console.WriteLine("Section type: {0", 
        restartOnChange.ToString());



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ