Interaction Workspace 8.0.0 .NET Developer's Guide and API Reference
RegisterType<(Of <(TFrom, TTo>)>) Method (name, singleton)
NamespacesGenesyslab.Desktop.Infrastructure.DependencyInjectionObjectContainerRegisterType<(Of <(TFrom, TTo>)>)(String, Boolean)
Register a type mapping with the container.
Declaration Syntax
C#Visual BasicVisual C++
public IObjectContainer RegisterType<TFrom, TTo>(
	string name,
	bool singleton
)
where TTo : 
Public Function RegisterType(Of TFrom, TTo As ) ( _
	name As String, _
	singleton As Boolean _
) As IObjectContainer
public:
generic<typename TFrom, typename TTo>
where TTo : 
virtual IObjectContainer^ RegisterType(
	String^ name, 
	bool singleton
) sealed
Generic Template Parameters
TFrom
Type that will be requested.
TTo
Type that will actually be returned.
Parameters
name (String)
Name to use for registration, null if a default registration.
singleton (Boolean)
If set to true the instance is registered as a singleton.
Return Value
The ObjectContainer object that this method was called on.

Assembly: Genesyslab.Desktop.Infrastructure (Module: Genesyslab.Desktop.Infrastructure) Version: 8.0.2.15 (8.0.002.15)