DevForce Help Reference
GetNewExportedInstance<T> Method


Type defining the contract
Whether the default DevForce implementation can be used when a custom implementation is not found.
Returns a new exported instance matching the import definition for the type.
Syntax
'Declaration
 
Public Function GetNewExportedInstance(Of T)( _
   Optional ByVal acceptDefault As Boolean, _
   Optional ByVal context As CompositionContext _
) As T
'Usage
 
Dim instance As CompositionHost
Dim acceptDefault As Boolean
Dim context As CompositionContext
Dim value As T
 
value = instance.GetNewExportedInstance(Of T)(acceptDefault, context)
public T GetNewExportedInstance<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 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

CompositionHost Class
CompositionHost Members

Send Feedback