Creates and adds a constructor function for the type to the CompositionContext.
Syntax
Visual Basic (Declaration) | |
---|
Protected Overloads Sub AddGenerator( _
ByVal type As Type _
) |
C# | |
---|
protected void AddGenerator(
Type type
) |
C++/CLI | |
---|
protected:
void AddGenerator(
Type^ type
) |
Parameters
- type
Exceptions
Exception | Description |
System.ArgumentException | Thrown 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