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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for