Geofence.SingleUse Property

Definition

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

App capabilities
location

Remarks

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

Applies to