IEventBindingService::CreateUniqueMethodName Method (IComponent^, EventDescriptor^)

 

Creates a unique name for an event-handler method for the specified component and event.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

String^ CreateUniqueMethodName(
	IComponent^ component,
	EventDescriptor^ e
)

Parameters

component
Type: System.ComponentModel::IComponent^

The component instance the event is connected to.

e
Type: System.ComponentModel::EventDescriptor^

The event to create a name for.

Return Value

Type: System::String^

The recommended name for the event-handler method for this event.

This method returns a name that is unique from any other method name in the user's source code.

.NET Framework
Available since 1.1
Return to top
Show: