This documentation is archived and is not being maintained.
GeoCoordinateWatcher::TryStart Method
Visual Studio 2010
Initiates the acquisition of data from the current location provider. This method returns synchronously.
Assembly: System.Device (in System.Device.dll)
Parameters
- suppressPermissionPrompt
- Type: System::Boolean
true to suppress the permission dialog box; false to display the permission dialog box.
- timeout
- Type: System::TimeSpan
Time in milliseconds to wait for the location provider to start before timing out.
Return Value
Type: System::Booleantrue if data acquisition is started within the time period specified by timeout; otherwise, false.
Implements
IGeoPositionWatcher<T>::TryStart(Boolean, TimeSpan)Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: