共用方式為


CompositionOperation.Run(LifetimeContext, CompositeActivator) 方法

定義

在指定的存留期內容中開始執行組合作業,由指定的啟動者驅動。

public:
 static System::Object ^ Run(System::Composition::Hosting::Core::LifetimeContext ^ outermostLifetimeContext, System::Composition::Hosting::Core::CompositeActivator ^ compositionRootActivator);
public static object Run (System.Composition.Hosting.Core.LifetimeContext outermostLifetimeContext, System.Composition.Hosting.Core.CompositeActivator compositionRootActivator);
static member Run : System.Composition.Hosting.Core.LifetimeContext * System.Composition.Hosting.Core.CompositeActivator -> obj
Public Shared Function Run (outermostLifetimeContext As LifetimeContext, compositionRootActivator As CompositeActivator) As Object

參數

outermostLifetimeContext
LifetimeContext

要在其中開始作業的內容 (必要時,作業可以流向內容的父代)。

compositionRootActivator
CompositeActivator

驅動作業的啟動項。

傳回

組合的物件圖形。

適用於