CompositeConfigurationSourceHandler.DoCheckGetSection Method
Checks whether the result of a call to GetSection(String) should be deferred to a subordinate source.
If the call should be deferred, returns the ConfigurationSection intance from the approriate source.
If the call should not be deferred returns configurationSection.
Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)
Syntax
'Declaration
Protected Overrides Function DoCheckGetSection ( _
sectionName As String, _
configurationSection As ConfigurationSection _
) As ConfigurationSection
protected override ConfigurationSection DoCheckGetSection(
string sectionName,
ConfigurationSection configurationSection
)
protected:
virtual ConfigurationSection^ DoCheckGetSection(
String^ sectionName,
ConfigurationSection^ configurationSection
) override
protected override function DoCheckGetSection(
sectionName : String,
configurationSection : ConfigurationSection
) : ConfigurationSection
Parameters
- sectionName
Type: System.String
The name of the section that was retrieved from configuration.
- configurationSection
Type: System.Configuration.ConfigurationSection
The section that was retrieved from configuration.
Return Value
The resulting ConfigurationSection instance.
Exceptions
Exception | Condition |
---|---|
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceErrorsException | Thrown if a section does not exist in a registered source. |
See Also
CompositeConfigurationSourceHandler Class
Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace