Share via


FileBasedConfigurationSource.AddSectionChangeHandler Method

Adds a handler to be called when changes to section

sectionName

are detected.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public void AddSectionChangeHandler(
    string sectionName,
    ConfigurationChangedEventHandler handler
)
'Declaration
Public Sub AddSectionChangeHandler ( 
    sectionName As String,
    handler As ConfigurationChangedEventHandler
)
public:
virtual void AddSectionChangeHandler(
    String^ sectionName, 
    ConfigurationChangedEventHandler^ handler
) sealed

Parameters

  • sectionName
    Type: System.String
    The name of the section to watch for.

Implements

IConfigurationSource.AddSectionChangeHandler(String, ConfigurationChangedEventHandler)

See Also

FileBasedConfigurationSource Class

FileBasedConfigurationSource Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace