←Select platform

RegisterSingle(Type,Type,string) Method

Summary

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

Syntax

C#
VB
C++
public static void RegisterSingle( 
   Type from, 
   Type to, 
   string name 
) 
  
Public Overloads Shared Sub RegisterSingle( _ 
   ByVal from As Type, _ 
   ByVal to As Type, _ 
   ByVal name As String _ 
)  
public: 
static void RegisterSingle(  
   Type^ from, 
   Type^ to, 
   String^ name 
)  

Parameters

from
Type that will be requested.

to
Type that will actually be returned.

name
TName to use for registration.

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly