Intersoft ClientUI Documentation
GetInstance Method
See Also  Send Feedback
Intersoft.Client.Framework.Containers Namespace > ThreadLocalStorageLifetime Class : GetInstance Method






creator
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

Visual Basic (Declaration) 
Public Function GetInstance( _
   ByVal creator As IRegistration _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As ThreadLocalStorageLifetime
Dim creator As IRegistration
Dim value As Object
 
value = instance.GetInstance(creator)
C# 
public object GetInstance( 
   IRegistration creator
)
Delphi 
public function GetInstance( 
    creator: IRegistration
): TObject; 
JScript 
public function GetInstance( 
   creator : IRegistration
) : Object;
Managed Extensions for C++ 
public: Object* GetInstance( 
   IRegistration* creator
) 
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.