This documentation is archived and is not being maintained.

ICorProfilerCallback::AssemblyUnloadFinished Method

Notifies the profiler that an assembly has been unloaded.

HRESULT AssemblyUnloadFinished(
    [in] AssemblyID assemblyId,
    [in] HRESULT    hrStatus);


[in] Identifies the assembly that is being unloaded.


[in] An HRESULT that indicates whether the assembly was unloaded successfully.

The value of assemblyId is not valid for an information request after the ICorProfilerCallback::AssemblyUnloadStarted method returns.

Some parts of unloading the assembly might continue after the AssemblyUnloadFinished callback. A failure HRESULT in hrStatus indicates a failure. However, a success HRESULT in hrStatus indicates only that the first part of unloading the assembly has succeeded.

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0