ICorProfilerInfo3::GetAppDomainsContainingModule 方法

获取其中加载了给定模块的应用程序域的标识符。

HRESULT GetAppDomainsContainingModule(
            [in] ModuleID moduleId,
            [in] ULONG32 cAppDomainIds,
            [out] ULONG32 *pcAppDomainIds,
            [out, size_is(cAppDomainIds), length_is(*pcAppDomainIds)]
                    AppDomainID appDomainIds[]);

参数

  • moduleId
    [in] 已加载的模块的 ID。

  • cAppDomainIds
    [in] appDomainIds 数组的大小。

  • pcAppDomainIds
    [out] 一个指向已返回元素总数的指针。

  • appDomainIds
    [out] 应用程序域 ID 值的数组。

备注

此方法使用由调用方分配的缓冲区。 有关更多信息,请参见 分析 API 方法约定

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorProf.idl、CorProf.h

**库:**CorGuids.lib

**.NET Framework 版本:**4

请参见

参考

ICorProfilerFunctionEnum 接口

ICorProfilerInfo3 接口

其他资源

分析接口

分析(非托管 API 参考)