T
Type of object to perform injection on
Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Generic BuildUp Method
See Also 
Leadtools.Dicom.AddIn Namespace > ServiceLocator Class : Generic BuildUp Method



existing
Instance to build up.
existing
Instance to build up.
Run an existing object through the container and perform injection on it.

Syntax

Visual Basic (Declaration) 
Public Shared Function BuildUp(Of T)( _
   ByVal existing As T _
) As T
Visual Basic (Usage)Copy Code
Dim existing As T
Dim value As T
 
value = ServiceLocator.BuildUp(Of T)(existing)
C# 
public static T BuildUp<T>( 
   T existing
)
C++/CLI 
public:
static T BuildUpgeneric<typename T>
( 
   T existing
) 

Parameters

existing
Instance to build up.

Type Parameters

T
Type of object to perform injection on

Return Value

The resulting object. By default, this will be existing, but container extensions may add things like automatic proxy creation which would cause this to return a different object (but still type compatible with T).

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features