Share via


Geofence.StartTime Property

Definition

The time to start monitoring the Geofence.

public:
 property DateTime StartTime { DateTime get(); };
DateTime StartTime();
public System.DateTimeOffset StartTime { get; }
var dateTime = geofence.startTime;
Public ReadOnly Property StartTime As DateTimeOffset

Property Value

The time to start monitoring the geofence. The default value is 0, which is the beginning of time, epoch.

Windows requirements

Requirements Description
App capabilities
location

Remarks

A geofence is made active when the StartTime is in the past. If the device is within the geofence's area when it becomes active and the geofence is being monitored for the MonitoredGeofenceStates.Entered flag, then the geofence triggers as soon as the DwellTime requirement has been met. However, if the device is outside the geofence when it becomes active, the geofence does not instantly switch to the MonitoredGeofenceStates.Exited flag. The device must enter a geofence, remain inside for the specified DwellTime, and then exit in order to switch to the MonitoredGeofenceStates.Exited flag.

Applies to