Geofence Geofence Geofence Geofence Geofence Class
Contains the functionality to define a geofence (a geographical area of interest) to monitor.
public : sealed class Geofence : IGeofence
struct winrt::Windows::Devices::Geolocation::Geofencing::Geofence : IGeofence
public sealed class Geofence : IGeofence
Public NotInheritable Class Geofence Implements IGeofence
var geofence = new geofence(id, geoshape);
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
|Duration Duration Duration Duration Duration|
|DwellTime DwellTime DwellTime DwellTime DwellTime||
The minimum time that a position has to be inside or outside of the Geofence in order for the notification to be triggered.
|Geoshape Geoshape Geoshape Geoshape Geoshape||
The shape of the geofence region.
|Id Id Id Id Id||
The id of the Geofence.
|MonitoredStates MonitoredStates MonitoredStates MonitoredStates MonitoredStates||
Indicates the states that the Geofence is being monitored for.
|SingleUse SingleUse SingleUse SingleUse SingleUse||
Indicates whether the Geofence should be triggered once or multiple times.
|StartTime StartTime StartTime StartTime StartTime||
The time to start monitoring the Geofence.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.