CompositeConfigurationSourceHandler.DoCheckAddSection Method

Checks whether a call to Add(String, ConfigurationSection) should be deferred to a subordinate source.
If the call should be deferred, adds the configurationSection to the appropriate source and returns truetrue (True in Visual Basic).
If the call should not be deferred returns truetrue (True in Visual Basic).

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

Syntax

'Declaration
Protected Overrides Function DoCheckAddSection ( _
    sectionName As String, _
    configurationSection As ConfigurationSection _
) As Boolean
protected override bool DoCheckAddSection(
    string sectionName,
    ConfigurationSection configurationSection
)
protected:
virtual bool DoCheckAddSection(
    String^ sectionName, 
    ConfigurationSection^ configurationSection
) override
protected override function DoCheckAddSection(
    sectionName : String, 
    configurationSection : ConfigurationSection
) : boolean

Parameters

  • sectionName
    Type: System.String
    The name of the section that should be added to configuration.

Return Value

truetrue (True in Visual Basic) if the section was added in a subordinate source, otherwise falsefalse (False in Visual Basic).

See Also

CompositeConfigurationSourceHandler Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace

IConfigurationSource.Add(String, ConfigurationSection)