Jaa


MonitoredGeofenceStates Enum

Definition

Indicates the state or states of the Geofences that are currently being monitored by the system.

This enumeration supports a bitwise combination of its member values.

public enum class MonitoredGeofenceStates
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MonitoredGeofenceStates
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MonitoredGeofenceStates
var value = Windows.Devices.Geolocation.Geofencing.MonitoredGeofenceStates.none
Public Enum MonitoredGeofenceStates
Inheritance
MonitoredGeofenceStates
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
location

Fields

Name Value Description
None 0

No flag is set.

Entered 1

The device has entered a geofence area.

Exited 2

The device has left a geofence area.

Removed 4

The geofence has been removed.

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

See also