Show / Hide Table of Contents

Method CreateFromGeoElement

CreateFromGeoElement(GeoElement, Double)

Static factory function to create a FenceParameters object.

Declaration
public static FenceParameters CreateFromGeoElement(GeoElement geoElement, double bufferDistance)
Parameters
Type Name Description
GeoElement geoElement

An individual GeoElement used to create a FenceParameters object.

System.Double bufferDistance

A buffer distance in meters to apply to the GeoElement when checking if a Geotrigger condition is met.

Returns
Type Description
FenceParameters

A FenceParameters object created from a GeoElement.

Remarks

This method creates the appropriate type of FenceParameters based on the type of the GeoElement that was supplied. The supported types of GeoElement are Graphic and Feature.

If passed an unsupported GeoElement, this method will return null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.12 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.12 - 200.7
Xamarin.Android100.12 - 100.15
Xamarin.iOS100.12 - 100.15
UWP100.12 - 200.7
In This Article
Back to top Copyright © 2022 Esri.