Register a type mapping with the container.

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


The ObjectContainer object that this method was called on.