Intersoft ClientUI Documentation
GetInstance Method (ThreadLocalStorageLifetime)



The IInstanceCreate to use to get the Key and create new if required.
Gets an instance from the thread local storage, or creates a new instance if not found.
Syntax
Public Function GetInstance( _
   ByVal creator As IRegistration _
) As Object
Dim instance As ThreadLocalStorageLifetime
Dim creator As IRegistration
Dim value As Object
 
value = instance.GetInstance(creator)
public object GetInstance( 
   IRegistration creator
)
public:
Object^ GetInstance( 
   IRegistration^ creator
) 

Parameters

creator
The IInstanceCreate to use to get the Key and create new if required.

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

ThreadLocalStorageLifetime Class
ThreadLocalStorageLifetime Members

Send Feedback