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



exportedType
Type defining the contract
context
Returns a new default DevForce implementation for the import definition.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetNewDefaultInstance( _
   ByVal exportedType As Type, _
   Optional ByVal context As CompositionContext _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As CompositionHost
Dim exportedType As Type
Dim context As CompositionContext
Dim value As Object
 
value = instance.GetNewDefaultInstance(exportedType, context)
C# 
public object GetNewDefaultInstance( 
   Type exportedType,
   CompositionContext context
)
C++/CLI 
public:
Object^ GetNewDefaultInstance( 
   Type^ exportedType,
   CompositionContext^ context
) 

Parameters

exportedType
Type defining the contract
context

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.