MobileForms Toolkit Documentation

GeoCode.GetLocationCompleted Event

Occurs when the GetLocation request completes

public event EventHandler GetLocationCompleted;

Remarks

If the request has been successfully completed, the property Location contains the GeoPoint object representing the resulting GPS location. Getting the Location property in case of failure causes that a ServiceRequestException is thrown.

If the request succeeded and the requested civic address cannot be well defined by a single point, the property ViewPoint should contain a valid GeoArea object defining the geographic area covered by the requested object.

This event is not thread safe because it is raised in the context of the background thread. Before accessing UI elements you will need to marshal the event using e.g. BeginInvoke call.

See Also

GeoCode Class | Resco.Location.Services.GeoCode Namespace