EventBindingService::FreeMethod Method (IComponent^, EventDescriptor^, String^)
.NET Framework (current version)
Provides a notification that a particular method is no longer being used by an event handler.
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
Available since 2.0
Show: