CompositionOperation.Run(LifetimeContext, CompositeActivator) 方法
定义
由指定的激活器进行驱动,在指定的生存期上下文内开始运行组合操作。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
要在其中开始执行操作的上下文(操作可在需要时流到上下文的父项)。The context in which to begin the operation (the operation can flow to the parents of the context if required).
- compositionRootActivator
- CompositeActivator
用于驱动操作的激活器。The activator that drives the operation.
返回
组合对象图。The composed object graph.