Share via


EventBindingService.RemoveMethod Method

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

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

Syntax

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

Parameters

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

Return Value

Type: System.Boolean
true if methodName is successfully removed from the event handling class; otherwise, false.

Remarks

This request is ignored if the method is not empty.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture