Intersoft ClientUI Documentation
CanResolve<TType>(String) Method



The type to be resolved.
The name of the registration to check for.
Determines if the type TType can be resolved.
Syntax
Public Overloads Function CanResolve(Of TType As Class)( _
   ByVal name As String _
) As Boolean
Dim instance As IocContainer
Dim name As String
Dim value As Boolean
 
value = instance.CanResolve(Of TType)(name)
public bool CanResolve<TType>( 
   string name
)
where TType: class
public:
bool CanResolvegeneric<typename TType>
( 
   String^ name
) 
where TType: ref class

Parameters

name
The name of the registration to check for.

Type Parameters

TType
The type to be resolved.

Return Value

True if there is an unnamed Registration for the type TType, false otherwise.
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