CodeDomEventBindingService.FreeMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- methodName
- String
The name of the method to remove.