Register a type mapping with the container.

C# | Visual Basic | Visual C++ |
IObjectContainer RegisterType<TFrom, TTo>( bool singleton ) where TTo :
Function RegisterType(Of TFrom, TTo As ) ( _ singleton As Boolean _ ) As IObjectContainer
generic<typename TFrom, typename TTo> where TTo : IObjectContainer^ RegisterType( bool singleton )


- singleton (Boolean)
- If set to true the instance is registered as a singleton.

The ObjectContainer object that this method was called on.