The KinectSensor
class has a static property of type KinectSensorCollection
, named KinectSensors
, which consists of the collection of sensors that are connected with the system. The KinectSensor
class returns the collection of connected Kinect devices with your system. KinectSensorCollection
is a read-only collection of type Kinect sensor
. Each KinectSensorCollection
contains an indexer of the KinectSensor
object and an event named StatusChanged
.
The following code block shows the definition of the KinectSensorCollection
class:
public sealed class KinectSensorCollection : ReadOnlyCollection<KinectSensor>, IDisposable { public KinectSensor this[string instanceId] { get; } public event EventHandler<StatusChangedEventArgs> StatusChanged; public void Dispose(); }
We need to get hold of the
KinectSensor
property most of the time to get access to the sensor information.