com.onlineobject.objectnet Namespace

INetworkEventsCore..::..RegisterEvent Method

Registers a callback action to be invoked when an event with the specified event code occurs.

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

Syntax


void RegisterEvent(

	int eventCode,

	Action<IDataStream> callBack

)

Parameters

eventCode
Type: Int32
The unique identifier for the event.
callBack
Type: Action<(Of <(<'IDataStream>)>)>
The action to be called when the event occurs, receiving an IDataStream as a parameter.