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.
public:
property bool SingleUse { bool get(); };
bool SingleUse();
public bool SingleUse { get; }
var boolean = geofence.singleUse;
Public ReadOnly Property SingleUse As Boolean
Property Value
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.