Click or drag to resize

IEventManagerGetInitialEvents Method

Returns the currently known states of all devices. The states are returned as state events.

Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
IEnumerable<EventData> GetInitialEvents()

Return Value

IEnumerableEventData
List of events containing the device states
Remarks
Expect this method to block for some seconds in very large systems until all device states have been collected and transfered back to the caller.

Usage Note
Because devices may continously change their state, the actual device state may already differ from the device states returned by this method. Therefore, do not use or rely upon this method when you need the latest device state. Instead, register an event receiver for state changes (see Register(EventReceiver)) and use e.g. GetInitialStates to request the current device states.

See Also