ICorProfilerInfo3::GetAppDomainsContainingModule 方法ICorProfilerInfo3::GetAppDomainsContainingModule Method

获取其中已加载给定模块的应用程序域的标识符。Gets the identifiers of the application domains in which the given module has been loaded.

语法Syntax

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

参数Parameters

moduleId
[in] 已加载模块的 ID。[in] The ID of the loaded module.

cAppDomainIds
[in] appDomainIds 数组的大小。[in] The size of the appDomainIds array.

pcAppDomainIds
[out] 指向所返回元素总数的指针。[out] A pointer to the total number of returned elements.

appDomainIds
[out] 应用程序域 ID 值的数组。[out] An array of application domain ID values.

注解Remarks

此方法使用调用方分配的缓冲区。The method uses caller allocated buffers.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

头文件: CorProf.idl、CorProf.hHeader: CorProf.idl, CorProf.h

库: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4 之后可用Available since 4.NET Framework Versions: 自 4 之后可用Available since 4

另请参阅See also