T
Type defining the contract
IdeaBlade DevForce 2010 Help Reference
GetNewExportedInstance<T> Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionHost Class : GetNewExportedInstance<T> Method



acceptDefault
Whether the default DevForce implementation can be used when a custom implementation is not found.
context
Returns a new exported instance matching the import definition for the type.

Syntax

Visual Basic (Declaration) 
Public Function GetNewExportedInstance(Of T)( _
   Optional ByVal acceptDefault As Boolean, _
   Optional ByVal context As CompositionContext _
) As T
Visual Basic (Usage)Copy Code
Dim instance As CompositionHost
Dim acceptDefault As Boolean
Dim context As CompositionContext
Dim value As T
 
value = instance.GetNewExportedInstance(Of T)(acceptDefault, context)
C# 
public T GetNewExportedInstance<T>( 
   bool acceptDefault,
   CompositionContext context
)
C++/CLI 
public:
T^ GetNewExportedInstancegeneric<typename T>
( 
   bool acceptDefault,
   CompositionContext^ context
) 

Parameters

acceptDefault
Whether the default DevForce implementation can be used when a custom implementation is not found.
context

Type Parameters

T
Type defining the contract

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.