Show / Hide Table of Contents

Constructor FeatureCollectionTable

FeatureCollectionTable(IFeatureSet)

Initializes a new instance of the FeatureCollectionTable class from an IFeatureSet.

Declaration
public FeatureCollectionTable(IFeatureSet featureSet)
Parameters
Type Name Description
IFeatureSet featureSet

A IFeatureSet, for example FeatureQueryResult.

Remarks

The FeatureCollectionTable will be populated with the contents of the IFeatureSet. Note that this constructor may take some time to complete depending on how many features are in the feature set.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

FeatureCollectionTable(IEnumerable<Field>?, GeometryType, SpatialReference?)

Initializes a new instance of the FeatureCollectionTable class.

Declaration
public FeatureCollectionTable(IEnumerable<Field>? fields, GeometryType geometryType, SpatialReference? spatialRef)
Parameters
Type Name Description
IEnumerable<Field> fields

A collection of Field. Contents of the collection will be copied.

GeometryType geometryType

The type of geometry that will be held in this table.

SpatialReference spatialRef

The spatial reference of the features that will be held in this table.

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.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

FeatureCollectionTable(IEnumerable<Field>?, GeometryType, SpatialReference?, bool, bool)

Initializes a new instance of the FeatureCollectionTable class.

Declaration
public FeatureCollectionTable(IEnumerable<Field>? fields, GeometryType geometryType, SpatialReference? spatialRef, bool hasZ, bool hasM = false)
Parameters
Type Name Description
IEnumerable<Field> fields

A collection of Field. Contents of the collection will be copied.

GeometryType geometryType

The type of geometry that will be held in this table.

SpatialReference spatialRef

The spatial reference of the features that will be held in this table.

bool hasZ

Boolean specifying whether the table supports geometries with Z values.

bool hasM

Boolean specifying whether the table supports geometries with M values.

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.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

FeatureCollectionTable(IEnumerable<GeoElement>, IEnumerable<Field>?)

Initializes a new instance of the FeatureCollectionTable class populated from the specified GeoElement collection.

Declaration
public FeatureCollectionTable(IEnumerable<GeoElement> geoElements, IEnumerable<Field>? fields)
Parameters
Type Name Description
IEnumerable<GeoElement> geoElements

A collection of geoelements.

IEnumerable<Field> fields

A common set of fields for the geoelements.

Remarks

The geometry type and spatial reference will be inferred from the geoelements passed in. Note that this constructor may take some time to complete depending on how many geoelements are passed in.

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
In this article
Provide feedback
Back to top Copyright © 2025 Esri.