DevForce Help Reference
AddGenerator(Type,Type,Func<Object>) Method


Adds the specified constructor function for the type to the CompositionContext.
Syntax
'Declaration
 
Protected Overloads Sub AddGenerator( _
   ByVal contractType As Type, _
   ByVal instanceType As Type, _
   ByVal instanceFunc As Func(Of Object) _
) 
'Usage
 
Dim instance As CompositionContext
Dim contractType As Type
Dim instanceType As Type
Dim instanceFunc As Func(Of Object)
 
instance.AddGenerator(contractType, instanceType, instanceFunc)
protected void AddGenerator( 
   Type contractType,
   Type instanceType,
   Func<object> instanceFunc
)

Parameters

contractType
instanceType
instanceFunc
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

CompositionContext Class
CompositionContext Members
Overload List

Send Feedback