Intersoft ClientUI Documentation
CanResolve(String,Type) Method
See Also  Send Feedback
Intersoft.Client.Framework.Containers Namespace > IDependencyResolver Interface > CanResolve Method : CanResolve(String,Type) Method






name
The name of the registration to check for.
type
The type to be resolved.
Determines if the type TType can be resolved.

Syntax

Visual Basic (Declaration) 
Overloads Function CanResolve( _
   ByVal name As String, _
   ByVal type As Type _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As IDependencyResolver
Dim name As String
Dim type As Type
Dim value As Boolean
 
value = instance.CanResolve(name, type)
C# 
bool CanResolve( 
   string name,
   Type type
)
Delphi 
function CanResolve( 
    name: String;
    type: Type
): Boolean; 
JScript 
function CanResolve( 
   name : String,
   type : Type
) : boolean;
Managed Extensions for C++ 
bool CanResolve( 
   string* name,
   Type* type
) 
C++/CLI 
bool CanResolve( 
   String^ name,
   Type^ type
) 

Parameters

name
The name of the registration to check for.
type
The type to be resolved.

Return Value

True if there is an unnamed Registration for the type TType, false otherwise.

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.