EventBindingService::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.Design (in System.Design.dll)

private:
virtual String^ CreateUniqueMethodName(
	IComponent^ component,
	EventDescriptor^ e
) sealed = IEventBindingService::CreateUniqueMethodName

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.

Exception Condition
ArgumentNullException

component or e is null.

.NET Framework
Available since 2.0
Return to top
Show: