Intersoft.Client.Framework.Containers Namespace > IocContainer Class > RegisterInstance Method : RegisterInstance<TType>(TType) Method |
Public Overloads Function RegisterInstance(Of TType As Class)( _ ByVal instance As TType _ ) As IRegistration
Dim instance As IocContainer Dim instance As TType Dim value As IRegistration value = instance.RegisterInstance(Of TType)(instance)
public IRegistration RegisterInstance<TType>( TType instance ) where TType: class
public: IRegistration^ RegisterInstancegeneric<typename TType> ( TType^ instance ) where TType: ref class
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2