IModelObject::GetKind method (dbgmodel.h)

The GetKind method returns what kind of object is boxed inside the IModelObject. Such kind is defined by the ModelObjectKind enumeration.

Syntax

HRESULT GetKind(
  ModelObjectKind *kind
);

Parameters

kind

The kind of object as indicated above will be returned in this argument.

Return value

This method returns HRESULT that indicates success or failure. This method should not typically fail.

Remarks

Code Sample

ComPtr<IModelObject> spObject; /* acquired from somewhere */

ModelObjectKind kind;
HRESULT hr = spObject->GetKind(&kind);

// kind indicates the kind of model object

Requirements

Requirement Value
Header dbgmodel.h

See also

IModelObject interface