com.onlineobject.objectnet Namespace

NetworkObject..::..RegisterEvent Method

Registers a callback action for a specific event code.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public void RegisterEvent(

	int eventCode,

	Action<IDataStream> callBack

)

Parameters

eventCode
Type: Int32
The event code to register the callback for.
callBack
Type: Action<(Of <(<'IDataStream>)>)>
The callback action to be invoked when the event occurs.