TType
The type to be registered.
TImpl
The type that will be instantiated when TType is resolved. The instance is created using the constructor with the most parameters, each parameter is resolved by the container.
Intersoft ClientUI Documentation
Register<TType,TImpl>(String) Method
See Also  Send Feedback
Intersoft.Client.Framework.Containers Namespace > IocContainer Class > Register Method : Register<TType,TImpl>(String) Method






name
The name this registration will be registered under.
Registers a implementation type to be instantiated when the the specified type is resolved based on the given name.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Register
     (Of TType,TImpl As TType)( _
   ByVal name As String _
) As IRegistration
Visual Basic (Usage)Copy Code
Dim instance As IocContainer
Dim name As String
Dim value As IRegistration
 
value = instance.Register(Of TType, TImpl)(name)
C# 
public IRegistration Register<TType,TImpl>( 
   string name
)where TImpl: TType
Delphi 
public function Register( 
    name: String
): IRegistration; 
JScript 
public function Register( 
   name : String
) : IRegistration;
Managed Extensions for C++ 
public: IRegistration* Register<TType,TImpl>( 
   string* name
) where TImpl: TType
C++/CLI 
public:
IRegistration^ Registergeneric<typename TType>
generic<typename TImpl>
( 
   String^ name
) where TImpl: TType

Parameters

name
The name this registration will be registered under.

Type Parameters

TType
The type to be registered.
TImpl
The type that will be instantiated when TType is resolved. The instance is created using the constructor with the most parameters, each parameter is resolved by the container.

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.