IDataModelNameBinder::EnumerateReferences method (dbgmodel.h)

The EnumerateReferences method enumerates the set of names and references to them which will bind against the object according to the rules of the BindReference 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 EnumerateReferences(
  IModelObject   *contextObject,
  IKeyEnumerator **enumerator
);

Parameters

contextObject

The object for which to enumerate all name bindings and references to them.

enumerator

An enumerator which will enumerate every name that would bind according to calls to BindReference and references to them. 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 BindReference.

Return value

This method returns HRESULT that indicates success or failure.

Requirements

Requirement Value
Header dbgmodel.h

See also

IDataModelNameBinder interface