Represents the method that will handle the Detecting event.
[Visual Basic] Public Delegate Sub DetectEventHandler( _ ByVal Object As Object, _ ByVal DetectEventArgs As DetectEventArgs, _ ByRef Boolean& As Boolean@ _ )
If you set the cancel parameter to true, then the detection will be cancelled.
Remarks
When you create a DetectEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.