This example shows how to evaluate the return value from IsDynamicSourceRegistered to see whether a particular dynamic component is already registered. Refer to ISystemDebugEventInstall Example (Visual Basic) to see this code in context.
' Check to see whether a dynamic component is registered.
Private Sub Sample_IsDynamicSourceRegistered(ByVal sSourceGUID As String)
Dim bIsRegistered As Boolean
' sSourceGUID is the GUID for the component.
' bIsRegistered is passed by reference and gets the answer.
' Run the method.
mESI.IsDynamicSourceRegistered sSourceGUID, bIsRegistered
If bIsRegistered Then MsgBox "Registered" Else MsgBox "Not Registered"
End Sub