com.onlineobject.objectnet Namespace

NetworkElementBase..::..RegisterEvent Method

Registers a new event with a callback action if it is not already registered.

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 representing the event.
callBack
Type: Action<(Of <(<'IDataStream>)>)>
The callback action to be invoked when the event occurs.

Exceptions


ExceptionCondition
ExceptionThrown when the event is already registered.