This example shows how to unregister a component. Refer to ISystemDebugEventInstall Example (Visual Basic) to see this code in context.
' Unregister a dynamic component.
Private Sub Sample_UnregisterDynamicSource(ByVal sSourceGUID As String)
' sSourceGUID is the GUID for the component.
mESI.UnRegisterDynamicSource sSourceGUID
End Sub