TryStart Method
Collapse the table of content
Expand the table of content

IGeoPositionWatcher(Of T).TryStart Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Attempts to start the acquisition of data from the location service.

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)

'Declaration
Function TryStart ( _
	suppressPermissionPrompt As Boolean, _
	timeout As TimeSpan _
) As Boolean

Parameters

suppressPermissionPrompt
Type: System.Boolean
This parameter is not used.
timeout
Type: System.TimeSpan
A TimeSpan object specifying the amount of time to wait for location data acquisition to begin.

Return Value

Type: System.Boolean
Returns Boolean.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft