
Visual Basic (Declaration) | |
---|---|
Public Class CompositionHost |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CompositionHost |
C# | |
---|---|
public class CompositionHost |
C++/CLI | |
---|---|
public ref class CompositionHost |
Use CompositionHost.Instance to reference the singleton used within DevForce. The CompositionHost is used to manage DevForce extensibility via imports and exports. You do not need to use the CompositionHost for MEF extensibility within your own application, although you can. You will generally not need to directly call methods on the CompositionHost since DevForce will handle discovery as needed.
By default, DevForce will create a catalog using all assemblies in a folder, or for Silverlight applications all assemblies in the XAP. In Silverlight applications you can add dynamically loaded content using one of the Add(Uri) overloads.
You can modify default search behaviors by modifying the SearchPatterns and IgnorePatterns, and in desktop application the SearchFolders and SearchOption can be set.
System.Object
IdeaBlade.Core.Composition.CompositionHost
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