IdeaBlade Application Framework
IsHandler Method
See Also  Send Feedback
Caliburn.Micro.Extensions Namespace > EventFns Class : IsHandler Method



source
An instance of the EventAggregator class.
handler
The object to be probed.
messageType
The type of the message to be handled.
Returns true if the provided object implements IHandle for the given messageType.

Syntax

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

Parameters

source
An instance of the EventAggregator class.
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

© 2012 All Rights Reserved.