ICorProfilerInfo7:: GetInMemorySymbolsLength 方法ICorProfilerInfo7::GetInMemorySymbolsLength Method

[在 .NET Framework 4.6.1 及更新版本中支援][Supported in the .NET Framework 4.6.1 and later versions]

傳回記憶體中符號資料流程的長度。Returns the length of an in-memory symbol stream.

語法Syntax

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

參數Parameters

moduleId
在包含記憶體中資料流程之模組的識別碼。[in] The identifier of the module containing the in-memory stream.

pCountSymbolBytespCountSymbolBytes
擴展 DWORD 值的指標,當方法傳回時,會包含資料流程的長度(以位元組為單位)。[out] A pointer to a DWORD value that, when the method returns, contains the length of the stream in bytes.

傳回值Return Value

S_OK如果可以判斷記憶體資料流程的長度,此方法會傳回,即使它是零 (0) 。The method returns S_OK if the length of the memory stream can be determined, even if it is zero (0).

如果是使用建立方法,則方法會傳回 CORPROF_E_MODULE_IS_DYNAMIC System.Reflection.EmitThe method returns CORPROF_E_MODULE_IS_DYNAMIC if the method was created using System.Reflection.Emit.

備註Remarks

如果模組有記憶體內的符號,資料流程的長度就會放在中 pCountSymbolBytesIf the module has in-memory symbols, the length of the stream is placed in pCountSymbolBytes. 如果模組沒有記憶體內的符號,則為 *pCountSymbolBytes = 0If the module doesn't have in-memory symbols, *pCountSymbolBytes = 0.

注意

目前的執行不支援反映。發出。The current implementation does not support Reflection.Emit. 如果模組是使用反映來建立,則方法會傳回 CORPROF_E_MODULE_IS_DYNAMICIf the module was created by using Reflection.Emit, the method returns CORPROF_E_MODULE_IS_DYNAMIC.

需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorProf.idl、CorProf.hHeader: CorProf.idl, CorProf.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.6.1 起可用Available since 4.6.1.NET Framework Versions: 自 4.6.1 起可用Available since 4.6.1

另請參閱See also