'Declaration
Public Shared Sub Add( _ ByVal catalog As ComposablePartCatalog _ )
'Usage
Dim catalog As ComposablePartCatalog CompositionHost.Add(catalog)
public static void Add( ComposablePartCatalog catalog )
// If using MEF DeploymentCatalog, add to the DevForce CompositionHost after download. public void AddXap(string uri) { DeploymentCatalog catalog; catalog = new DeploymentCatalog(uri); catalog.DownloadAsync(); catalog.DownloadCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(catalog_DownloadCompleted); } private void catalog_DownloadCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { IdeaBlade.Core.Composition.CompositionHost.Add(sender as DeploymentCatalog); }
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