IDataModelNameBinder::EnumerateValues method (dbgmodel.h)

The EnumerateValues method enumerates the set of names and values which will bind against the object according to the rules of the BindValue method. Unlike the EnumerateKeys, EnumerateValues, and similar methods on IModelObject which may return multiple names with the same value (for base classes, parent models, and the like), this enumerator will only return the specific set of names which will bind with BindValue and BindReference. Names will never be duplicated. Note that there is a significantly higher cost of enumerating an object via the name binder than calling the IModelObject methods.

Syntax

HRESULT EnumerateValues(
  IModelObject   *contextObject,
  IKeyEnumerator **enumerator
);

Parameters

contextObject

The object for which to enumerate all name bindings and their values.

enumerator

An enumerator which will enumerate every name that would bind according to calls to BindValue and their values. Note that this enumerator will never duplicate names. It will only return the set of names and values which would come out of explicit calls to BindValue.

Return value

This method returns HRESULT that indicates success or failure.

Requirements

Requirement Value
Header dbgmodel.h

See also

IDataModelNameBinder interface