Register an instance with the container.

C# | Visual Basic | Visual C++ |
IObjectContainer RegisterInstance<TInterface>( TInterface instance )
Function RegisterInstance(Of TInterface) ( _ instance As TInterface _ ) As IObjectContainer
generic<typename TInterface> IObjectContainer^ RegisterInstance( TInterface instance )

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

- instance (TInterface)
- Object to returned.

The ObjectContainer object that this method was called on.