IModelObject::GetIntrinsicValue method (dbgmodel.h)

The GetIntrinsicValue method returns the thing which is boxed inside an IModelObject. This method may only legally be called on IModelObject interfaces which represent a boxed intrinsic or a particular interface which is boxed. It cannot be called on native objects, no value objects, synthetic objects, and reference objects.

Syntax

HRESULT GetIntrinsicValue(
  VARIANT *intrinsicData
);

Parameters

intrinsicData

The value boxed inside the IModelObject is returned here. The pointer must point to a VARIANT structure which does not contain a freeable value. It is the responsibility of the caller to clear this VARIANT with VariantClear when finished with it.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Code Sample

ComPtr<IModelObject> spObject; /* get something */

VARIANT vtVal;
HRESULT hr = spObject->GetIntrinsicValue(&vtVal);
if (SUCCEEDED(hr) && vtVal.vt == VT_I4)
{
    int iVal = vtVal.lVal; // An integer has been unboxed into iVal.
}
VariantClear(&vtVal);

Requirements

Requirement Value
Header dbgmodel.h

See also

IModelObject interface