Show / Hide Table of Contents

Constructor DiscreteFieldSampleFunction

DiscreteFieldSampleFunction(DiscreteFieldFunction, MapPoint?)

Initializes a new instance of the DiscreteFieldSampleFunction class.

Declaration
public DiscreteFieldSampleFunction(DiscreteFieldFunction field, MapPoint? position = null)
Parameters
Type Name Description
DiscreteFieldFunction field

A function that returns the DiscreteField to sample.

MapPoint position

The position at which to sample the DiscreteField.

Remarks

EvaluateAsync(CancellationToken) fails if Position is null. However, creating a DiscreteFieldSampleFunction 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.

Exceptions
Type Condition
ArgumentNullException

field is null.

See Also
Sample(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.