Share via


EventBindingService.IsExistingMethodName Method

When overridden in a derived class, determines whether a method name that handles a specified event already exists.

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

Syntax

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

Parameters

  • methodName
    Type: System.String
    The name of the method to check.

Return Value

Type: System.Boolean
true if the method name that handles modelEvent already exists; otherwise, false.

Remarks

For example, if a method named Button1_Click already exists that handles the Click event for Button1, then this method should return true.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture