Metodo ICorDebugStackWalk::GetFrame

Ottiene il frame corrente nell'oggetto ICorDebugStackWalk .

Sintassi

HRESULT GetFrame([out] ICorDebugFrame ** pFrame);  

Parametri

pFrame
[in] Puntatore all'indirizzo dell'oggetto frame creato che rappresenta il frame corrente nello stack.

Valore restituito

Questo metodo restituisce gli specifici HRESULT seguenti, nonché gli errori di HRESULT che indicano la mancata riuscita del metodo.

HRESULT Descrizione
S_OK Il runtime ha restituito correttamente il frame corrente.
E_FAIL Il frame corrente non è stato restituito.
S_FALSE Il frame corrente è un frame dello stack nativo.
E_INVALIDARG pFrame è null.
CORDBG_E_PAST_END_OF_STACK Il puntatore del fotogramma è già alla fine dello stack; pertanto, non è possibile accedere a fotogrammi aggiuntivi.

Eccezioni

Osservazioni

ICorDebugStackWalk restituisce solo frame di stack effettivi. Utilizzare il metodo ICorDebugThread3::GetActiveInternalFrames per restituire fotogrammi interni. I frame interni sono strutture di dati push nello stack dal runtime per archiviare i dati temporanei.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorDebug.idl, CorDebug.h

Libreria: CorGuids.lib

Versioni di .NET Framework: Disponibile da 4

Vedi anche