IClassFactoryRegister Method (Type, Type) |
Registers an implementation of an interface. A new instance of the implementation will
be created for each call to Resolve.
Namespace: InterfaceFactoryAssembly: InterfaceFactory (in InterfaceFactory.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void Register(
Type interfaceType,
Type implementationType
)
Sub Register (
interfaceType As Type,
implementationType As Type
)
void Register(
Type^ interfaceType,
Type^ implementationType
)
abstract Register :
interfaceType : Type *
implementationType : Type -> unit
Parameters
- interfaceType
- Type: SystemType
The interface type. - implementationType
- Type: SystemType
The concrete type that implements interfaceType.
See Also