Show / Hide Table of Contents

Constructor StatisticDefinition

StatisticDefinition(string, StatisticType, string?)

Initializes a new instance of the StatisticDefinition class.

Declaration
public StatisticDefinition(string onFieldName, StatisticType statisticType, string? outputAlias)
Parameters
Type Name Description
string onFieldName

The name of the field in the table containing values to be used for the statistic.

StatisticType statisticType

The statistic to calculate.

string outputAlias

The optional name for this statistic in the results.

Remarks

A statistic definition must specify a field name and statistic type. Optionally, you can provide a name for the output statistic result.

Exceptions
Type Condition
ArgumentException

Invalid argument.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8
Relevant samples
Statistical query: Query a table to get aggregated statistics back for a specific field.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.