UnRegisterSource Example (Visual Basic)

   Applies To

This example shows how to unregister a component. Refer to ISystemDebugEventInstall Example (Visual Basic) to see this code in context.

' Unregister a normal component.
Private Sub Sample_UnregisterEventSource(ByVal sSourceGUID As String)
   ' sSourceGUID is the GUID for the component.
   mESI.UnRegisterSource sSourceGUID
End Sub