This example demonstrates calling BeginSession so that a component can start generating Visual Studio Analyzer events. Refer to ISystemDebugEventFire Example (Visual Basic) to see this code in context.
' Begin a session with the event creator object.
Private Sub Sample_BeginSession(ByVal sSourceGUID As String)
Dim sSessionName As String
' sSourceGUID identifies the component that will be monitored.
' sSessionName uniquely identifies the session to
' Visual Studio Analyzer.
sSessionName = "MyEventSourceFiringSession1"
' Begin the session.
mIEC.BeginSession sSourceGUID, sSessionName
End Sub