ICorProfilerAssemblyReferenceProvider Interface

.NET Framework (current version)

[Supported in the .NET Framework 4.5.2 and later versions]

Enables the profiler to inform the common language runtime (CLR) of assembly references that the profiler will add in the ICorProfilerCallback::ModuleLoadFinished callback.

AddAssemblyReference MethodInforms the CLR of an assembly reference that the profiler plans to add in the ModuleLoadFinished callback.

The CLR passes the profiler an ICorProfilerAssemblyReferenceProvider interface object in the ICorProfilerCallback6::GetAssemblyReferences callback. This enables the profiler to inform the CLR of assembly references that the profiler plans to add later in the ICorProfilerCallback::ModuleLoadFinished. callback. This improves the accuracy of the CLR's assembly reference closure walker and its algorithms for determining whether assemblies may be shared.

This interface can be used only in the ICorProfilerCallback6::GetAssemblyReferences callback that passes this interface object to the profiler.

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

.NET Framework Versions: Available since 4.5.2

Profiling Interfaces