C-DEngine 5.105

ICDEThing..::..FireEvent Method

Fires a specific event and calls all registered callbacks

Namespace:  nsCDEngine.Engines.ThingService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


void FireEvent(
	string pEventName,
	ICDEThing sender,
	Object parameter,
	bool FireAsync
)
Sub FireEvent ( _
	pEventName As String, _
	sender As ICDEThing, _
	parameter As Object, _
	FireAsync As Boolean _
)
void FireEvent(
	String^ pEventName, 
	ICDEThing^ sender, 
	Object^ parameter, 
	bool^ FireAsync
)

Parameters

pEventName
Type: String
EventName
sender
Type: nsCDEngine.Engines.ThingService..::..ICDEThing
Sender of this Event- Should be in most cases "this"
parameter
Type: Object
Parameter as an object. The fire Event can decide on the object type and the callback has to
FireAsync
Type: Boolean
if true, the event is fired asynchronously and returns right away