EventHandlerService::GetHandler Method (Type^)

 

Gets the currently active event handler of the specified type.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

public:
virtual Object^ GetHandler(
	Type^ handlerType
) sealed

Parameters

handlerType
Type: System::Type^

The type of the handler to get.

Return Value

Type: System::Object^

An instance of the handler, or null if there is no handler of the requested type.

You should never cache this value because other components are free to change it. This call is fairly quick, however, especially for cases when you are always asking for the same type of handler.

.NET Framework
Available since 1.1
Return to top
Show: