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

 

Creates a unique method name for the event.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

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

Return Value

Type: System::String^

The unique name.

This method creates a name of the format component_name_eventname. When this conflicts with an existing method it will append "_#" to the end of the method, incrementing the number at the end until a unique method name is obtained.

Return to top
Show: