ZylGPSReceiver Mobile for Smart Phone

GPSReceiver.OnDetecting Method 

Raises the Detecting event.

[Visual Basic]
Overridable Protected Sub OnDetecting( _
   ByVal DetectEventArgs As DetectEventArgs, _
   ByRef Boolean& As Boolean@ _
)
[C#]
protected virtual void OnDetecting(
   DetectEventArgs e,
   ref Boolean& cancel
);

Parameters

DetectEventArgs
A DetectEventArgs that contains the event data.
Boolean&
If you set the cancel parameter to true, then the detection will be cancelled.

Remarks

Raising an event invokes the event handler through a delegate. The OnDetecting method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Notes to Inheritors: When overriding OnDetecting in a derived class, be sure to call the base class's OnDetecting method so that registered delegates receive the event.

See Also

GPSReceiver Class | ZylGPSReceiverMobileSP Namespace