Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Deletes objects on the server
public __property RethyncServer::TRTDeleteObjectsEvent OnDeleteObjects;
typedef void (__closure *TRTDeleteObjectsEvent)( System::TObject* Sender, DynamicArray<TObjectInfo>* Info, int &Result );
- Sender - Contains the reference to the object that fired an event
- Info - The list of objects, whose ObjectID properties reference objects to be deleted
- Result - Event handler must set the parameter to 0 if no problems happened during handling of this event or to one of defined error codes in case of failure
The event handler should delete objects from server-side data storage.
The object for which the data is requested is identified by ObjectID property of objects contained in Info array.
Status property of the object must be set to "no error" if the object was deleted or to corresponding status code if the object could not be accessed or found.
Object class must be locked by the client before any information that belongs to the class is synchronized, otherwise the server must return CLASS_NOT_LOCKED error.
If the implementation needs to add some information or status to the centralized log, it can use Log() method of Engine object provided in OnOpenSession event.
Got questions or comments about this topic? Tell us about them.