RegisterSingle<I>(Type) Method

Summary

Registers a single instance of a type mapping with the container.

Syntax
C#
VB
C++
public static void RegisterSingle<I>( 
   Type to 
) 
  
Public Overloads Shared Sub RegisterSingle(Of I)( _ 
   ByVal to As Type _ 
)  
public: 
static void RegisterSinglegeneric<typename I> 
(  
   Type^ to 
)  

Parameters

to
Type that will actually be requested.

Type Parameters

I
Type that will be request.

Remarks

When types are registered using this function only one instance is returned. Each Retrieve request will return the same object.

Requirements

Target Platforms

Help Version 20.0.2019.11.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly