GeoPosition(T) Constructor (DateTimeOffset, T)
Collapse the table of content
Expand the table of content

GeoPosition(Of T) Constructor (DateTimeOffset, T)

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

Initializes a new instance of the GeoPosition(Of T) class with the provided time stamp and location.

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

'Declaration
Public Sub New ( _
	timestamp As DateTimeOffset, _
	position As T _
)

Parameters

timestamp
Type: System.DateTimeOffset
A DateTimeOffset object specifying the point in time associated with the GeoPosition(Of T) object.
position
Type: T
The location associated with the GeoPosition(Of T) object.

This method may throw one of the following exceptions.

ArgumentNullException

The location parameter must not be null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft