SelectionOperations.Subscribe Method
Adds a callback method that is invoked when the selection in the editing context changes.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Sub Subscribe ( _
context As EditingContext, _
handler As SubscribeContextCallback(Of Selection) _
)
public static void Subscribe(
EditingContext context,
SubscribeContextCallback<Selection> handler
)
public:
static void Subscribe(
EditingContext^ context,
SubscribeContextCallback<Selection^>^ handler
)
static member Subscribe :
context:EditingContext *
handler:SubscribeContextCallback<Selection> -> unit
public static function Subscribe(
context : EditingContext,
handler : SubscribeContextCallback<Selection>
)
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context of interest.
- handler
Type: Microsoft.Windows.Design.SubscribeContextCallback<Selection>
The method to invoke when the selection changes.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | context or handler is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace