C-DEngine 5.105

TheThingRegistry..::..RegisterEventOfThing Method

Short for tThing.RegisterEvent(eventname,callback)

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

Syntax


public static void RegisterEventOfThing(
	ICDEThing tThing,
	string pEventName,
	Action<ICDEThing, Object> pCallBack
)
Public Shared Sub RegisterEventOfThing ( _
	tThing As ICDEThing, _
	pEventName As String, _
	pCallBack As Action(Of ICDEThing, Object) _
)
public:
static void RegisterEventOfThing(
	ICDEThing^ tThing, 
	String^ pEventName, 
	Action<ICDEThing^, Object^>^ pCallBack
)

Parameters

tThing
Type: nsCDEngine.Engines.ThingService..::..ICDEThing
Thing to register the event on
pEventName
Type: String
Name the event (eThingEvents)
pCallBack
Type: Action<(Of <(<'ICDEThing, Object>)>)>
a callback used for the Event