Register a type mapping with the container.

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


The ObjectContainer object that this method was called on.