Microsoft DirectX 8.1 (C++)

Services Object

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The Services object manages a collection of Service objects.

This object exposes the following properties, methods and events.

Property Description
AddNew Adds an object to the collection.
ChannelLineups Retrieves a collection of all ChannelLineup objects in the Guide Store.
Count Retrieves the number of objects in the collection.
Item Retrieves the object located at the specified index.
ItemsByKey Retrieves a sorted collection of objects that meet the specified criteria.
ItemsInTimeRange Retrieves a collection of objects  whose start or end times occur within the specified range.
ItemsWithMetaProperty Retrieves a collection of objects all associated with the specified MetaProperty object.
ItemsWithMetaPropertyCond Retrieves a collection whose Service objects all meet the condition of a specified MetaPropertyCondition object.
ItemWithID Retrieves a Service object by its unique identifier.
ItemWithProviderName Retrieves an object by provider name.

Method Description
Remove Removes a specified object from the repository.
RemoveAll Removes all objects in the collection from the repository.
Resync Updates the collection.
UnreferencedItems Retrieves a collection of objects that are not referenced by other objects.

Event Description
ItemAdded An object has been added to the collection.
ItemChanged An object in the collection has changed.
ItemRemoved An object has been removed from the collection.
ItemsChanged Two or more objects in the collection have been changed, added, or removed.