SectionInformation.RestartOnExternalChanges Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that specifies whether a change in an external configuration include file requires an application restart.
public:
property bool RestartOnExternalChanges { bool get(); void set(bool value); };
public bool RestartOnExternalChanges { get; set; }
member this.RestartOnExternalChanges : bool with get, set
Public Property RestartOnExternalChanges As Boolean
Property Value
true
if a change in an external configuration include file requires an application restart; otherwise, false
. The default is true
.
Exceptions
The selected value conflicts with a value that is already defined.
Examples
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());
}
Public Shared Sub RestartOnExternalChanges()
Dim sInfo As SectionInformation = _
GetSectionInformation()
Dim restartOnChange As Boolean = _
sInfo.RestartOnExternalChanges
Console.WriteLine("Section type: {0}", _
restartOnChange.ToString())
End Sub
Remarks
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기