EndSession

           

Ends a Visual Studio Analyzer session for the calling component.

Syntax

Visual Basic object.EndSession()
Visual C++ HRESULT EndSession();
Visual J++ object.EndSession();

Parameters

object

A unique instance of the event creator object. The event creator object generates Visual Studio Analyzer events for the calling component. Each instance of a component has its own event creator object.

Remarks

You must call BeginSession before you call EndSession.

You can make repeated calls to EndSession on the same object, as long as you have a matching BeginSession call for each EndSession call. You cannot nest calls, as the following table illustrates:

Accepted Not Accepted
BeginSession BeginSession
EndSession BeginSession
BeginSession EndSession
EndSession EndSession