LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)
LEAD Technologies, Inc

RegisterSingle(Type,Type,String) Method






Type that will be requested.
Type that will actually be returned.
TName to use for registration.
Registers a single instance of a type mapping with the container.
Syntax
public static void RegisterSingle( 
   Type from,
   Type to,
   string name
)
'Declaration
 
Public Overloads Shared Sub RegisterSingle( _
   ByVal from As Type, _
   ByVal to As Type, _
   ByVal name As String _
) 
'Usage
 
Dim from As Type
Dim to As Type
Dim name As String
 
ServiceLocator.RegisterSingle(from, to, name)
public static void RegisterSingle( 
   Windows.UI.Xaml.Interop.TypeName from,
   Windows.UI.Xaml.Interop.TypeName to,
   string name
)
 function Leadtools.Dicom.AddIn.ServiceLocator.RegisterSingle(Type,Type,String)( 
   from ,
   to ,
   name 
)
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ServiceLocator Class
ServiceLocator Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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