ICorProfilerAssemblyReferenceProvider::AddAssemblyReference Method
[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.
Syntax
HRESULT AddAssemblyReference(
const COR_PRF_ASSEMBLY_REFERENCE_INFO* pAssemblyRefInfo
);
Parameters
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.
Remarks
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 wszAssemblyPath
argument.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.5.2