Cocktail Help Reference
IsHandler Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > EventFns Class : IsHandler Method



handler
The object to be probed.
messageType
The type of the message to be handled.

Glossary Item Box

Returns true if the provided object implements IHandle for the given messageType.

Syntax

Visual Basic (Declaration) 
Public Shared Function IsHandler( _
   ByVal handler As Object, _
   ByVal messageType As Type _
) As Boolean
Visual Basic (Usage)Copy Code
Dim handler As Object
Dim messageType As Type
Dim value As Boolean
 
value = EventFns.IsHandler(handler, messageType)
C# 
public static bool IsHandler( 
   object handler,
   Type messageType
)
C++/CLI 
public:
static bool IsHandler( 
   Object^ handler,
   Type^ messageType
) 

Parameters

handler
The object to be probed.
messageType
The type of the message to be handled.

Return Value

True if the handler handles the given message type.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.