Geofence.SingleUse | singleUse property

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

Syntax


public:
property bool SingleUse { 
   bool get();
}

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True indicates the geofence should be monitored only for one use. False indicates the geofence should be monitored for multiple uses.

Remarks

A geofence is considered used once all MonitoredStates have been met. 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.

The default value for SingleUse is false.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation.Geofencing
Windows::Devices::Geolocation::Geofencing [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Geolocation.Geofencing
Windows::Devices::Geolocation::Geofencing [C++]

Metadata

Windows.winmd

See also

Geofence

 

 

Show:
© 2015 Microsoft