Partager via


IActiveScriptProfilerCallback::Shutdown

Called to inform the profiler object whenever profiling is stopped on a scripting engine. This way, the profiler object can call its cleanup routines, if required. This method is also called by the scripting engine when the scripting engine is shutting down, or when a call to IActiveScriptProfilerCallback::Initialize fails.

Syntax

HRESULT Shutdown(  
    [in] HRESULT hrReason);  

Parameters

hrReason
[in] The reason for shutting down. If the scripting engine is shutting down, S_OK is passed. If the call to IActiveScriptProfilerCallback::Initialize returns a failure HRESULT, the HRESULT is passed. Otherwise, this value is retrieved from IActiveScriptProfilerControl::StopProfiling.

Return Value

The return value of this method is ignored by the scripting engine.

See also

IActiveScriptProfilerCallback Interface