Share via


EventBindingService.CreateUniqueMethodName Method

When overridden in a derived class, returns a unique method name for an event handler.

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

Syntax

'Declaration
Public MustOverride Function CreateUniqueMethodName ( _
    modelEvent As ModelEvent _
) As String
public abstract string CreateUniqueMethodName(
    ModelEvent modelEvent
)
public:
virtual String^ CreateUniqueMethodName(
    ModelEvent^ modelEvent
) abstract
abstract CreateUniqueMethodName : 
        modelEvent:ModelEvent -> string 
public abstract function CreateUniqueMethodName(
    modelEvent : ModelEvent
) : String

Parameters

Return Value

Type: System.String
A unique event handler name. For example, Button1_Click or Button1_Click_1.

Remarks

The result of this method can be used to call the CreateMethod method.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture