ICorProfilerInfo7::GetInMemorySymbolsLength Method

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

Returns the length of an in-memory symbol stream.


HRESULT GetInMemorySymbolsLength(  
        [in] ModuleID moduleId,  
        [out] DWORD* pCountSymbolBytes  


[in] The identifier of the module containing the in-memory stream.

[out] A pointer to a DWORD value that, when the method returns, contains the length of the stream in bytes.

Return Value

The method returns S_OK if the length of the memory stream can be determined, even if it is zero (0).

The method returns CORPROF_E_MODULE_IS_DYNAMIC if the method was created using System.Reflection.Emit.


If the module has in-memory symbols, the length of the stream is placed in pCountSymbolBytes. If the module doesn't have in-memory symbols, *pCountSymbolBytes = 0.


The current implementation does not support Reflection.Emit. If the module was created by using Reflection.Emit, the method returns CORPROF_E_MODULE_IS_DYNAMIC.


Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6.1

See also