ISensorCollection interface (sensorsapi.h)

Represents a collection of sensors, such as all the sensors connected to a computer.

Retrieve a pointer to ISensorCollection by calling methods of the ISensorManager interface. In addition to the methods inherited from IUnknown, the ISensorCollection interface exposes the following methods.

Inheritance

The ISensorCollection interface inherits from the IUnknown interface.

Methods

The ISensorCollection interface has these methods.

 
ISensorCollection::Add

Adds a sensor to the collection.
ISensorCollection::Clear

Empties the sensor collection.
ISensorCollection::GetAt

Retrieves the sensor at the specified index in the collection.
ISensorCollection::GetCount

Retrieves the count of sensors in the collection.
ISensorCollection::Remove

Removes a sensor from the collection. The sensor is specified by a pointer to the ISensor interface to be removed.
ISensorCollection::RemoveByID

Removes a sensor from the collection. The sensor to be removed is specified by its ID.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sensorsapi.h

See also

COM Interfaces