Intersoft ClientUI Documentation
Register<TType>(Func<IDependencyResolver,TType>) Method



The type to be registered.
The delegate which will be called to create an instance of the type TType.
Adds the function to resolve an unnamed registration of the specified type to the container.
Syntax
Public Overloads Function Register(Of TType As Class)( _
   ByVal func As Func(Of IDependencyResolver,TType) _
) As IRegistration
Dim instance As IocContainer
Dim func As Func(Of IDependencyResolver,TType)
Dim value As IRegistration
 
value = instance.Register(Of TType)(func)
public IRegistration Register<TType>( 
   Func<IDependencyResolver,TType> func
)
where TType: class
public:
IRegistration^ Registergeneric<typename TType>
( 
   Func<IDependencyResolver^,TType^>^ func
) 
where TType: ref class

Parameters

func
The delegate which will be called to create an instance of the type TType.

Type Parameters

TType
The type to be registered.

Return Value

An instance of IRegistration that can be used to configure how the get information about the registration, or change the lifetime manager.
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

IocContainer Class
IocContainer Members
Overload List

Send Feedback