Share via


EventBindingService.RemoveHandle Method

When overridden in a derived class, requests that a specific method stop handling a specific event by removing it from a Handles clause.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function RemoveHandle ( _
    modelEvent As ModelEvent, _
    methodName As String _
) As Boolean
public abstract bool RemoveHandle(
    ModelEvent modelEvent,
    string methodName
)
public:
virtual bool RemoveHandle(
    ModelEvent^ modelEvent, 
    String^ methodName
) abstract
abstract RemoveHandle : 
        modelEvent:ModelEvent * 
        methodName:string -> bool 
public abstract function RemoveHandle(
    modelEvent : ModelEvent, 
    methodName : String
) : boolean

Parameters

  • methodName
    Type: System.String
    The method to stop handling modelEvent.

Return Value

Type: System.Boolean
true if the event can be successfully removed from the method declaration in the code-behind file; otherwise, false.

Remarks

In C#, this method always returns false. In Visual Basic, this means that the event is removed from the Handles clause of the method, if applicable.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture