Geofence.MonitoredStates Property

Definition

Indicates the states that the Geofence is being monitored for.

public:
 property MonitoredGeofenceStates MonitoredStates { MonitoredGeofenceStates get(); };
MonitoredGeofenceStates MonitoredStates();
public MonitoredGeofenceStates MonitoredStates { get; }
var monitoredGeofenceStates = geofence.monitoredStates;
Public ReadOnly Property MonitoredStates As MonitoredGeofenceStates

Property Value

MonitoredGeofenceStates

The states that the geofence is being monitored for.

Windows 10 requirements

App capabilities
location

Remarks

You must specify the Entered or Exited states, or both, for a geofence to be monitored. It is not possible to create a geofence that only monitors the Removed state.

Applies to