Share via


CodeDomEventBindingService.FreeMethod Method

Definition

Removes the specified method from the code if no event handlers are using it and it is empty.

protected:
 override void FreeMethod(System::ComponentModel::IComponent ^ component, System::ComponentModel::EventDescriptor ^ e, System::String ^ methodName);
protected override void FreeMethod (System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e, string methodName);
override this.FreeMethod : System.ComponentModel.IComponent * System.ComponentModel.EventDescriptor * string -> unit
Protected Overrides Sub FreeMethod (component As IComponent, e As EventDescriptor, methodName As String)

Parameters

component
IComponent

IComponent.

methodName
String

The name of the method to remove.

Applies to