IContextProperties::EnumNames method (comsvcs.h)

Retrieves a reference to an enumerator for the context object properties.

Syntax

HRESULT EnumNames(
  [out] IEnumNames **ppenum
);

Parameters

[out] ppenum

A reference to the IEnumNames interface on a new enumerator object that you can use to iterate through all the context object properties.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

Use the EnumNames method to obtain a reference to an enumerator object. The returned IEnumNames interface exposes several methods you can use to iterate through a list of BSTR values representing context object properties. When you have a name, you can use the GetProperty method to obtain a reference to the context object property it represents. As with any COM object, you must release an enumerator object when you are finished using it.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IContextProperties