IComponentRegistryBuilderRegister Method (IComponentRegistration, Boolean) |
Register a component.
Namespace:
Autofac.Core.Registration
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax void Register(
IComponentRegistration registration,
bool preserveDefaults
)
Sub Register (
registration As IComponentRegistration,
preserveDefaults As Boolean
)
Parameters
- registration
- Type: Autofac.CoreIComponentRegistration
The component registration. - preserveDefaults
- Type: SystemBoolean
If true, existing defaults for the services provided by the
component will not be changed.
See Also