Selection.Subscribe 方法

定义

订阅了选择集更改事件的帮助器方法。

public:
 static void Subscribe(System::Activities::Presentation::EditingContext ^ context, System::Activities::Presentation::SubscribeContextCallback<System::Activities::Presentation::View::Selection ^> ^ handler);
public static void Subscribe (System.Activities.Presentation.EditingContext context, System.Activities.Presentation.SubscribeContextCallback<System.Activities.Presentation.View.Selection> handler);
static member Subscribe : System.Activities.Presentation.EditingContext * System.Activities.Presentation.SubscribeContextCallback<System.Activities.Presentation.View.Selection> -> unit
Public Shared Sub Subscribe (context As EditingContext, handler As SubscribeContextCallback(Of Selection))

参数

context
EditingContext

要侦听的编辑上下文。

handler
SubscribeContextCallback<Selection>

要在选择集更改时调用的处理程序。

适用于