CodeDomEventBindingService::UseMethod Method (IComponent^, EventDescriptor^, String^)

 

Creates the method declaration for the given method name and event descriptor.

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

protected:
virtual void UseMethod(
	IComponent^ component,
	EventDescriptor^ e,
	String^ methodName
) override

Parameters

component
Type: System.ComponentModel::IComponent^

IComponent.

e
Type: System.ComponentModel::EventDescriptor^

EventDescriptor.

methodName
Type: System::String^

The name of the method.

This method first finds the method and then determines that the corresponding method was not already defined in the base class. It then generates the code and adds it to the list of members.

Return to top
Show: