共用方式為


ICorProfilerCallback::AppDomainShutdownFinished 方法

向分析工具告知已從處理序卸載應用程式定義域。

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

參數

  • appDomainId
    [in] 識別在其中儲存應用程式組件的定義域。

  • hrStatus
    [in] HRESULT,表示是否成功卸載應用程式定義域。

備註

ICorProfilerCallback::AppDomainShutdownStarted 方法傳回之後,appDomainId 的值便無法用於資訊要求。

AppDomainCreationFinished 回呼之後,卸載應用程式定義域的某些部分可能會繼續。 hrStatus 中的失敗 HRESULT 是表示失敗。 不過,hrStatus 中的成功 HRESULT 只表示卸載應用程式定義域的第一個部分成功。

需求

**平台:**請參閱 .NET Framework 系統需求

**標頭:**CorProf.idl、CorProf.h

**程式庫:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0

請參閱

參考

ICorProfilerCallback 介面