Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Geofence.SingleUse Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Indicates whether the Geofence should be triggered once or multiple times.

public:
 property bool SingleUse { bool get(); };
bool SingleUse();
public bool SingleUse { get; }
var boolean = geofence.singleUse;
Public ReadOnly Property SingleUse As Boolean

Property Value

Boolean

bool

true indicates the geofence should be monitored only for one use. false indicates the geofence should be monitored for multiple uses.

Windows requirements

Requirements Description
App capabilities
location

Remarks

A geofence is considered used when all MonitoredStates have been triggered. If a geofence is only being monitored for the MonitoredGeofenceStates.Entered event and SingleUse is set to true, then entering the geofence marks it as used and it is removed. If a geofence is monitored for both the MonitoredGeofenceStates.Entered and MonitoredGeofenceStates.Exited events and SingleUse is set to true, then the geofence is removed after the user has both entered and exited the geofence.

Applies to


Feedback

Was this page helpful?