IdeaBlade DevForce 2010 Help Reference
AddGenerator(Type) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionContext Class > AddGenerator Method : AddGenerator(Type) Method



type
Creates and adds a constructor function for the type to the CompositionContext.

Syntax

Visual Basic (Declaration) 
Protected Overloads Sub AddGenerator( _
   ByVal type As Type _
) 
Visual Basic (Usage)Copy Code
Dim instance As CompositionContext
Dim type As Type
 
instance.AddGenerator(type)
C# 
protected void AddGenerator( 
   Type type
)
C++/CLI 
protected:
void AddGenerator( 
   Type^ type
) 

Parameters

type

Exceptions

ExceptionDescription
System.ArgumentExceptionThrown if the specified type does not have a composable base type or interface

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

© 2013 All Rights Reserved.