Responder Developer Guide
CanResolve(Type,String,NamedParameterOverloads) Method


Type to resolve
Name of registration
User supplied named parameter overloads
Attempts to predict whether a given named type can be resolved with the supplied constructor parameters and default options. Parameters are used in conjunction with normal container resolution to find the most suitable constructor (if one exists). All user supplied parameters must exist in at least one resolvable constructor of RegisterType or resolution will fail. Note: Resolution may still fail if user defined factory registations fail to construct objects when called.
Syntax
'Declaration
 
Public Overloads Function CanResolve( _
   ByVal resolveType As Type, _
   ByVal name As String, _
   ByVal parameters As NamedParameterOverloads _
) As Boolean
'Usage
 
Dim instance As TinyIoCContainer
Dim resolveType As Type
Dim name As String
Dim parameters As NamedParameterOverloads
Dim value As Boolean
 
value = instance.CanResolve(resolveType, name, parameters)
public bool CanResolve( 
   Type resolveType,
   string name,
   NamedParameterOverloads parameters
)

Parameters

resolveType
Type to resolve
name
Name of registration
parameters
User supplied named parameter overloads

Return Value

Bool indicating whether the type can be resolved
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TinyIoCContainer Class
TinyIoCContainer Members
Overload List

 

 


Send Comment