Show / Hide Table of Contents

Method Sample

Sample(MapPoint?)

Composes a function that samples the result of this field function at a position.

Declaration
public BooleanFieldSampleFunction Sample(MapPoint? position = null)
Parameters
Type Name Description
MapPoint position

The position at which to sample the result of this field function.

Returns
Type Description
BooleanFieldSampleFunction

A function that samples the result of this field function at a position.

Remarks

EvaluateAsync(CancellationToken) fails if Position is null. However, creating a BooleanFieldSampleFunction with no position can be useful in an interactive or dynamic analysis. A null initial position lets you define an interactive or dynamic analysis before its position is available. You can then defer evaluation until a position has been populated.

See Also
BooleanFieldSampleFunction(BooleanFieldFunction, MapPoint)

Applies to

Platforms and versions
TargetVersions
.NET300.2
.NET Windows300.2
.NET Android300.2
.NET iOS300.2
In this article
Provide feedback
Back to top Copyright © 2025 Esri.