Partager via


ConfigurationSourceFactory.Create Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Creates a new configuration sources based on the default configuration information from the application's default configuration file.

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

Syntax

'Declaration
PublicSharedFunctionCreateAs IConfigurationSource
publicstatic IConfigurationSource Create()
public:
static IConfigurationSource^ Create()
publicstaticfunctionCreate() : IConfigurationSource

Return Value

The new configuration source instance described as the default in the configuration file, or a new instance of SystemConfigurationSource if the is no configuration sources configuration.

Exceptions

Exception Condition
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection when there is a configuration section but it does not define a default configurtion source, or when the configuration for the defined default configuration source is not found.

See Also

ConfigurationSourceFactory Class

Create Overload

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.