Subscribe Method
Helper method that subscribes to selection change events.
Namespace: Microsoft.Data.Tools.Design.Core.Context
Assembly: Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)
Syntax
'Declaration
Public Shared Sub Subscribe ( _
context As EditingContext, _
handler As SubscribeContextCallback(Of Selection(Of T, Owner)) _
)
'Usage
Dim context As EditingContext
Dim handler As SubscribeContextCallback(Of Selection(Of T, Owner))
Selection.Subscribe(context, handler)
public static void Subscribe(
EditingContext context,
SubscribeContextCallback<Selection<T, Owner>> handler
)
public:
static void Subscribe(
EditingContext^ context,
SubscribeContextCallback<Selection<T, Owner>^>^ handler
)
static member Subscribe :
context:EditingContext *
handler:SubscribeContextCallback<Selection<'T, 'Owner>> -> unit
public static function Subscribe(
context : EditingContext,
handler : SubscribeContextCallback<Selection<T, Owner>>
)
Parameters
- context
Type: Microsoft.Data.Tools.Design.Core.Context..::..EditingContext
The editing context to listen to.
- handler
Type: Microsoft.Data.Tools.Design.Core.Context..::..SubscribeContextCallback< (Of < ( <'Selection< (Of < ( <'T, Owner> ) > ) >> ) > ) >
The handler to be invoked when the selection changes.