Intersoft.Client.Framework.Containers Namespace > IocContainer Class > Register Method : Register<TType>(String,Func<IDependencyResolver,TType>) Method |
Public Overloads Function Register(Of TType As Class)( _ ByVal name As String, _ ByVal func As Func(Of IDependencyResolver,TType) _ ) As IRegistration
Dim instance As IocContainer Dim name As String Dim func As Func(Of IDependencyResolver,TType) Dim value As IRegistration value = instance.Register(Of TType)(name, func)
public IRegistration Register<TType>( string name, Func<IDependencyResolver,TType> func ) where TType: class
public: IRegistration^ Registergeneric<typename TType> ( String^ name, Func<IDependencyResolver^,TType^>^ func ) where TType: ref class
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