C-DEngine 5.105

TheThing..::..FireEvent Method

Fires the given Event. Every TheThing can register and Fire any Event on any event. New Events can be defined at Runtime, registered and fired

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

Syntax


public void FireEvent(
	string pEventName,
	ICDEThing sender,
	Object pPara,
	bool FireAsync
)
Public Sub FireEvent ( _
	pEventName As String, _
	sender As ICDEThing, _
	pPara As Object, _
	FireAsync As Boolean _
)
public:
void FireEvent(
	String^ pEventName, 
	ICDEThing^ sender, 
	Object^ pPara, 
	bool^ FireAsync
)

Parameters

pEventName
Type: String
Name of the Event to Fire
sender
Type: nsCDEngine.Engines.ThingService..::..ICDEThing
this pointer or any other ICDETHing that will be handed to the callback. If set to null, "this" will be used
pPara
Type: Object
Parameter to be handed with the Event
FireAsync
Type: Boolean
If set to true, the callback is running on a new Thread