IEnumeration Class

class IEnumeration: public IQueryGuid, public IRefCount

This interface provides access to an enumeration. An enumeration is a set of indexed values. Enumerated properties are associated with an enumeration and store their values as indices into the enumeration . The  IProperty interface provides the function  IProperty::GetEnumeration to access the enumeration.

Defined in: PropIface.h

Class Members

virtual int  GetItemCount() const

Return the number of items in the enumeration.

virtual void  GetItemValue(const int nItemIdx, VARIANT& val) const

Get the value of the given item in the enumeration.

virtual void  SetItemValue(const int nItemIdx, const VARIANT& val)

Set the value of the given item in the enumeration.

virtual void  GetItemDescription(const int nItemIdx, BSTR* bDesc) const

Get the description of the given item in the enumeration.

virtual void  SetItemDescription(const int nItemIdx, const OLECHAR* pszDesc)

Set the description of the given item in the enumeration.

virtual void  AddItem(const VARIANT& val, const OLECHAR* pszDesc)

Add an item to the enumeration.