Intersoft ClientUI Documentation
GetInstance Method (ContainerLifetime)



The creator (registration) to create a new instance.
Gets the instance from the container instance cache, if available, otherwise creates a new instance and caches it. This effectively make the instance an application scoped Singleton.
Syntax
Public Function GetInstance( _
   ByVal registration As IRegistration _
) As Object
Dim instance As ContainerLifetime
Dim registration As IRegistration
Dim value As Object
 
value = instance.GetInstance(registration)
public object GetInstance( 
   IRegistration registration
)
public:
Object^ GetInstance( 
   IRegistration^ registration
) 

Parameters

registration
The creator (registration) to create a new instance.

Return Value

The 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

ContainerLifetime Class
ContainerLifetime Members

Send Feedback