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






type
The type to be resolved.
Gets a function that resolves an unnamed instance of the type TType. This function delays the creation of types which is useful to improve performance particularly when the specified type allocates expensive resources.

Syntax

Visual Basic (Declaration) 
Overloads Function LazyResolve( _
   ByVal type As Type _
) As Func(Of Object)
Visual Basic (Usage)Copy Code
Dim instance As IDependencyResolver
Dim type As Type
Dim value As Func(Of Object)
 
value = instance.LazyResolve(type)
C# 
Func<object> LazyResolve( 
   Type type
)
Delphi 
function LazyResolve( 
    type: Type
): Func; 
JScript 
function LazyResolve( 
   type : Type
) : Func;
Managed Extensions for C++ 
Func<Object*>* LazyResolve( 
   Type* type
) 
C++/CLI 
Func<Object^>^ LazyResolve( 
   Type^ type
) 

Parameters

type
The type to be resolved.

Return Value

An instance of the function delegate which is registered to resolve the type TType.

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.