IDataModelManager::GetRootNamespace メソッド (dbgmodel.h)
GetRootNamespace メソッドは、データ モデルのルート名前空間を返します。 これは、データ モデルが管理し、デバッグ ホストが特定のオブジェクトを配置するオブジェクトです。 少なくとも次の階層がすべてのホストによって公開されることが予想されます。
• Debugger - represents the debugger which is hosting the data model
o Sessions - a collection of sessions which represent each debug target
Processes -- a collection of processes which represent each process in the debug target
- Threads -- a collection of threads which represent each thread within a given process in the debug target
構文
HRESULT GetRootNamespace(
IModelObject **rootNamespace
);
パラメーター
rootNamespace
データ モデルのルート名前空間がここで返されます。
戻り値
このメソッドは、成功または失敗を示す HRESULT を返します。
備考
サンプル コード の
ComPtr<IDataModelManager> spManager; /* get the data model manager */
ComPtr<IModelObject> spRootNamespace;
if (SUCCEEDED(spManager->GetRootNamespace(&spRootNamespace)))
{
// We've gotten the root namespace successfully. Find the Debugger property.
ComPtr<IModelObject> spDebugger;
if (SUCCEEDED(spRootNamespace->GetKeyValue(L"Debugger", &spDebugger, nullptr)))
{
// We've gotten the "Debugger" property successfully. Find the
// Sessions property.
ComPtr<IModelObject> spSessions;
if (SUCCEEDED(spDebugger->GetKeyValue(L"Sessions", &spSessions, nullptr)))
{
// We've gotten the "Sessions" property successfully.
}
}
}
必要条件
要件 | 価値 |
---|---|
ヘッダー | dbgmodel.h |
関連項目
IDataModelManager インターフェイス の