Interaction Workspace 8.0.0 .NET Developer's Guide and API Reference
RegisterType<(Of <(TFrom, TTo>)>) Method (name, singleton)
Namespaces ► Genesyslab.Desktop.Infrastructure.DependencyInjection ► IObjectContainer ► RegisterType<(Of <(TFrom, TTo>)>)(String, Boolean)
Register a type mapping with the container.
Declaration Syntax

C# | Visual Basic | Visual C++

    IObjectContainer RegisterType<TFrom, TTo>(
    	string name,
    	bool singleton
    )
    where TTo :

    Function RegisterType(Of TFrom, TTo As ) ( _
    	name As String, _
    	singleton As Boolean _
    ) As IObjectContainer

    generic<typename TFrom, typename TTo>
    where TTo :
    IObjectContainer^ RegisterType(
    	String^ name,
    	bool singleton
    )

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)