Returns a new exported instance matching the import definition for the type.
Syntax
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) |
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