Intersoft ClientUI Documentation
GetInstance Method (ILifetimeManager)



The registration which is used to supply the storage key and create a new instance if required.
Get an instance for the registration, using the lifetime manager to cache instance as required by the scope of the lifetime manager.
Syntax
Function GetInstance( _
   ByVal registration As IRegistration _
) As Object
Dim instance As ILifetimeManager
Dim registration As IRegistration
Dim value As Object
 
value = instance.GetInstance(registration)
object GetInstance( 
   IRegistration registration
)
Object^ GetInstance( 
   IRegistration^ registration
) 

Parameters

registration
The registration which is used to supply the storage key and create a new instance if required.

Return Value

The cached or new instance.
Requirements

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

See Also

Reference

ILifetimeManager Interface
ILifetimeManager Members

Send Feedback