Register an instance with the container.

C# | Visual Basic | Visual C++ |
public IObjectContainer RegisterInstance<TInterface>( string name, TInterface instance )
Public Function RegisterInstance(Of TInterface) ( _ name As String, _ instance As TInterface _ ) As IObjectContainer
public: generic<typename TInterface> virtual IObjectContainer^ RegisterInstance( String^ name, TInterface instance ) sealed

- TInterface
- Type of instance to register (may be an implemented interface instead of the full type).

- name (String)
- Name for registration.
- instance (TInterface)
- Object to returned.

The ObjectContainer object that this method was called on.