T
Type of object to get from the container.
Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Generic Retrieve() Method
See Also 
Leadtools.Dicom.AddIn Namespace > ServiceLocator Class > Retrieve Method : Generic Retrieve() Method



Resolve an instance of the default requested type from the container.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function Retrieve(Of T)() As T
Visual Basic (Usage)Copy Code
Dim value As T
 
value = ServiceLocator.Retrieve(Of T)()
C# 
public static T Retrieve<T>()
C++/CLI 
public:
static T Retrievegeneric<typename T>
(); 

Type Parameters

T
Type of object to get from the container.

Return Value

The retrieved object.

Example

Registers an IServiceLog implementation with the global unity container.

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