TcxCustomSchedulerStorage.GetEventByID(Variant) Method
Returns an event by its unique identifier.
Declaration
function GetEventByID(const AID: Variant): TcxSchedulerEvent;
Parameters
Name | Type |
---|---|
AID | Variant |
Returns
Type |
---|
TcxSchedulerEvent |
Remarks
Call this function to obtain an event by its unique identifier passed as the AID parameter. The GetEventByID function returns nil if the specified identifier corresponds to no stored event in the persistence manager component. You can access all stored events via the Events property.
Note
Since event identifiers are unique only in a specific persistence manager component, the aggregate storage component does not work with event identifiers unlike its individual linked storage components (persistence managers). The aggregate storage’s GetEventByID function can return incorrect results. Call a specific linked storage component’s GetEventByID function instead.
See Also