View Source
Class Configs
Represents Umbraco configurations.
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
Methods
View Source
Add<TConfig>(Func<TConfig>)
Adds a configuration, provided by a factory.
Declaration
public void Add<TConfig>(Func<TConfig> configFactory)
where TConfig : class
Parameters
Type |
Name |
Description |
System.Func<TConfig> |
configFactory |
|
Type Parameters
View Source
Add<TConfig>(Func<IFactory, TConfig>)
Adds a configuration, provided by a factory.
Declaration
public void Add<TConfig>(Func<IFactory, TConfig> configFactory)
where TConfig : class
Parameters
Type |
Name |
Description |
System.Func<IFactory, TConfig> |
configFactory |
|
Type Parameters
View Source
Add<TConfig>(String)
Adds a configuration, provided by a configuration section.
Declaration
public void Add<TConfig>(string sectionName)
where TConfig : class
Parameters
Type |
Name |
Description |
System.String |
sectionName |
|
Type Parameters
View Source
GetConfig<TConfig>()
Declaration
public TConfig GetConfig<TConfig>()
where TConfig : class
Returns
Type Parameters
View Source
RegisterWith(IRegister)
Registers configurations in a register.
Declaration
public void RegisterWith(IRegister register)
Parameters