EventBindingService::FreeMethod Method (IComponent^, EventDescriptor^, String^)

 

Provides a notification that a particular method is no longer being used by an event handler.

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

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

Parameters

component
Type: System.ComponentModel::IComponent^

The component to which the method is bound.

e
Type: System.ComponentModel::EventDescriptor^

The EventDescriptor for the event handler.

methodName
Type: System::String^

The name of the method to be freed.

Some implementations may intend to remove the event hander when no events are using it. By overriding UseMethod and FreeMethod, an implementation can infer when a method is no longer needed.

.NET Framework
Available since 2.0
Return to top
Show: