ICorProfilerCallback::AppDomainCreationFinished 方法ICorProfilerCallback::AppDomainCreationFinished Method

通知探查器已创建应用程序域。Notifies the profiler that an application domain has been created.

语法Syntax

HRESULT AppDomainCreationFinished(  
    [in] AppDomainID appDomainId,  
    [in] HRESULT     hrStatus);

参数Parameters

  • appDomainId

    [中的] 标识已创建的域。[in] Identifies the domain which has been created.

  • hrStatus

    [in] 一个 HRESULT,指示是否已成功完成创建应用程序域。[in] An HRESULT that indicates whether creation of the application domain completed successfully.

注解Remarks

在调用方法之前,应用程序 ID 对于任何信息请求均无效 AppDomainCreationFinishedThe application ID is not valid for any information request until the AppDomainCreationFinished method is called.

在回调后,某些加载应用程序域的部分可能会继续 AppDomainCreationFinishedSome parts of loading the application domain might continue after the AppDomainCreationFinished callback. 中的 HRESULT 失败 hrStatus 表示失败。A failure HRESULT in hrStatus indicates a failure. 但是,中的成功 HRESULT hrStatus 仅指示创建应用程序域的第一部分已成功。However, a success HRESULT in hrStatus indicates only that the first part of creating the application domain has succeeded.

要求Requirements

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

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

库: CorGuids.libLibrary: CorGuids.lib

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

另请参阅See also