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

Requirements Description
App capabilities
location

Remarks

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

Applies to