Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Elimina il punto di interruzione.
Sintassi
Valore restituito
Se ha esito positivo, restituisce S_OK; in caso contrario, restituisce un codice di errore. Restituisce E_BP_DELETED se lo stato dell'oggetto punto di interruzione associato è impostato su BPS_DELETED (parte dell'enumerazione BP_STATE ).
Esempio
Nell'esempio seguente viene illustrato come implementare questo metodo per un oggetto semplice CBoundBreakpoint che espone l'interfaccia IDebugBoundBreakpoint2 .
HRESULT CBoundBreakpoint::Delete(void)
{
HRESULT hr;
// Verify that the bound breakpoint has not been
// deleted. If deleted, then return hr = E_BP_DELETED.
if (m_state != BPS_DELETED)
{
m_pInterp->RemoveBreakpoint(m_sbstrDoc, this);
// Change the state of the breakpoint to BPS_DELETED.
m_state = BPS_DELETED;
hr = S_OK;
}
else
{
hr = E_BP_DELETED;
}
return hr;
}