com.onlineobject.objectnet Namespace

NetworkEventsCore..::..RegisterEvent Method

Registers a new event with a callback action.

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

Syntax


public void RegisterEvent(

	int eventCode,

	Action<IDataStream> callBack

)

Parameters

eventCode
Type: Int32
The unique code for the event.
callBack
Type: Action<(Of <(<'IDataStream>)>)>
The callback action to be executed when the event is triggered.

Exceptions


ExceptionCondition
ExceptionThrown when the event is already registered.