Share via


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

The states that the geofence is being monitored for.

Windows 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