CompositionOperation.Run(LifetimeContext, CompositeActivator) CompositionOperation.Run(LifetimeContext, CompositeActivator) CompositionOperation.Run(LifetimeContext, CompositeActivator) CompositionOperation.Run(LifetimeContext, CompositeActivator) Method

定義

在指定的存留期內容中開始執行組合作業,由指定的啟動者驅動。Runs the composition operation starting within the specified lifetime context, driven by the specified activator.

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 LifetimeContext LifetimeContext LifetimeContext

要在其中開始作業的內容 (必要時,作業可以流向內容的父代)。The context in which to begin the operation (the operation can flow to the parents of the context if required).

compositionRootActivator
CompositeActivator CompositeActivator CompositeActivator CompositeActivator

驅動作業的啟動項。The activator that drives the operation.

傳回

組合的物件圖形。The composed object graph.

適用於