DevForce Help Reference
GetExportedInstances(Type,Boolean,CreationPolicy,CompositionContext) Method


Type defining the contract
Whether the default DevForce implementation can be used when a custom implementation is not found.
Creation policy
Returns any exported instances matching the import definition for the type.
Syntax
'Declaration
 
Public Overloads Function GetExportedInstances( _
   ByVal exportedType As Type, _
   Optional ByVal acceptDefault As Boolean, _
   Optional ByVal policy As CreationPolicy, _
   Optional ByVal context As CompositionContext _
) As IEnumerable
'Usage
 
Dim instance As CompositionHost
Dim exportedType As Type
Dim acceptDefault As Boolean
Dim policy As CreationPolicy
Dim context As CompositionContext
Dim value As IEnumerable
 
value = instance.GetExportedInstances(exportedType, acceptDefault, policy, context)

Parameters

exportedType
Type defining the contract
acceptDefault
Whether the default DevForce implementation can be used when a custom implementation is not found.
policy
Creation policy
context
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
Overload List

Send Feedback