IDataModelManager2::Close method (dbgmodel.h)
The Close method is called on the data model manager by an application (e.g.: debugger) hosting the data model in order to start the shutdown process of the data model manager. A host of the data model which does not the Close method prior to releasing its final reference on the data model manager may cause undefined behavior including, but not limited to, significant leaks of the management infrastructure for the data model.
Syntax
HRESULT Close();
Return value
This method returns HRESULT.
Remarks
Sample Code
ComPtr<IDataModelManager2> spManager2; /* get the data model manager */
if (SUCCEEDED(spManager->Close()))
{
// We can now shut down the debug host which is hosting the data model.
}
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