GeoCoordinateWatcher::TryStart Method (Boolean, TimeSpan)
Initiates the acquisition of data from the current location provider. This method returns synchronously.
Assembly: System.Device (in System.Device.dll)
public: virtual bool TryStart( bool suppressPermissionPrompt, TimeSpan timeout ) sealed
true to suppress the permission dialog box; false to display the permission dialog box.
Time in milliseconds to wait for the location provider to start before timing out.
Return ValueType: System::Boolean
true if data acquisition is started within the time period specified by timeout; otherwise, false.
This method blocks execution of the calling thread during the time period specified by timeout. Use caution when callingfrom the user interface thread of your application.
Available since 4.0
Windows Phone Silverlight
Available since 7.0