Share via


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

Exceptions

Exception Condition
ArgumentNullException

context or handler is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

SelectionOperations Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionCommands

SelectionTool

EditingContext

Other Resources

WPF Designer Extensibility Architecture