SelectionOperations.Unsubscribe Method
Removes a callback method so that it is not 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 Unsubscribe ( _
context As EditingContext, _
handler As SubscribeContextCallback(Of Selection) _
)
public static void Unsubscribe(
EditingContext context,
SubscribeContextCallback<Selection> handler
)
public:
static void Unsubscribe(
EditingContext^ context,
SubscribeContextCallback<Selection^>^ handler
)
static member Unsubscribe :
context:EditingContext *
handler:SubscribeContextCallback<Selection> -> unit
public static function Unsubscribe(
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 that is removed.
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