[Supported in the .NET Framework 4.5.2 and later versions]
Informs the common language runtime (CLR) of an assembly reference that the profiler plans to add in the ICorProfilerCallback::ModuleLoadFinished callback.
HRESULT AddAssemblyReference( const COR_PRF_ASSEMBLY_REFERENCE_INFO* pAssemblyRefInfo );
A pointer to a COR_PRF_ASSEMBLY_REFERENCE_INFO structure that provides the CLR with information about an assembly reference that it should consider when performing an assembly reference closure walk.
The profiler calls this method for each target assembly it plans to reference from the assembly specified in the
wszAssemblyPath argument of the ICorProfilerCallback6::GetAssemblyReferences callback. The ICorProfilerAssemblyReferenceProvider interface object is passed to the profiler's ICorProfilerCallback6::GetAssemblyReferences callback, along with the assembly path and name in the
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 4.5.2
Send feedback about: