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

 

Creates a unique method name.

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

protected:
virtual String^ CreateUniqueMethodName(
	IComponent^ component,
	EventDescriptor^ e
) abstract

Parameters

component
Type: System.ComponentModel::IComponent^

The component for which the method name will be created.

e
Type: System.ComponentModel::EventDescriptor^

The event to create a name for.

Return Value

Type: System::String^

The unique method name.

Exception Condition
ArgumentNullException

component or e is null.

The name returned by the CreateUniqueMethodName method must be compatible with the script language being used and it must not conflict with any other name in your code.

.NET Framework
Available since 2.0
Return to top
Show: