Intersoft ClientUI Documentation
GetSpecificRegistration<TType> Method (IocContainer)



The type to get the registration for.
The contract name can be the name of an abstract class or an interface.
Returns a specific registration based on the specified type and contract name.
Syntax
Public Function GetSpecificRegistration(Of TType As Class)( _
   ByVal name As String _
) As IRegistration
Dim instance As IocContainer
Dim name As String
Dim value As IRegistration
 
value = instance.GetSpecificRegistration(Of TType)(name)
public IRegistration GetSpecificRegistration<TType>( 
   string name
)
where TType: class
public:
IRegistration^ GetSpecificRegistrationgeneric<typename TType>
( 
   String^ name
) 
where TType: ref class

Parameters

name
The contract name can be the name of an abstract class or an interface.

Type Parameters

TType
The type to get the registration for.

Return Value

A registration instance for the specified type. Throws a KeyNoFoundException if the registration cannot be found.
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

Send Feedback