RefreshSection Method

ConfigurationManager::RefreshSection Method (String^)

 

Refreshes the named section so the next time that it is retrieved it will be re-read from disk.

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

public:
static void RefreshSection(
	String^ sectionName
)

Parameters

sectionName
Type: System::String^

The configuration section name or the configuration path and section name of the section to refresh.

This method invalidates the cache for the specified configuration section without affecting other sections.

The following code example shows how to use the RefreshSection method to refresh the application settings configuration section.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft