RanorexRanorex Documentation
SubscribeEvent Method (name, handler)
NamespacesRanorex.CoreElementSubscribeEvent(String, Delegate)
Subscribes to an event.
Declaration Syntax
C#Visual BasicVisual C++
public void SubscribeEvent(
	string name,
	Delegate handler
)
Public Sub SubscribeEvent ( _
	name As String, _
	handler As Delegate _
)
public:
void SubscribeEvent(
	String^ name, 
	Delegate^ handler
)
Parameters
name (String)
The name of the event to subscribe to.
handler (Delegate)
The event callback.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name or handler are null.
EventSubscriptionFailedExceptionThrown if subscribing to the event failed.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)