layout: default title: FieldsIndex parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Layers

FieldsIndex Class

This class provides convenient methods that can be used to make case-insensitive lookups for a field by its name. It also provides more information such as the list of date fields in a layer.
ArcGIS Maps SDK for JavaScript

public class FieldsIndex : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 FieldsIndex

Properties

FieldsIndex.DateFields Property

An array of date fields or field json objects.

public dymaptic.GeoBlazor.Core.Components.Layers.Field[]? DateFields { get; set; }

Property Value

Field[]

FieldsIndex.JsFieldsReference Property

For internal use only, JavaScript object reference.

public Microsoft.JSInterop.IJSObjectReference JsFieldsReference { get; set; }

Property Value

Microsoft.JSInterop.IJSObjectReference

Methods

FieldsIndex.Get(string) Method

Returns a field with the specified field name.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.Field> Get(string fieldName);

Parameters

fieldName System.String

The name of the field. The name is case-insensitive.

Returns

System.Threading.Tasks.Task<Field>

FieldsIndex.GetTimeZone(string) Method

Returns a time zone for a field. Use this method to ensure queries in the following places are issued in the time zone of the given date field:
FeatureLayer.DefinitionExpression
Query.Where
FeatureFilter.Where

public System.Threading.Tasks.Task<string?> GetTimeZone(string fieldName);

Parameters

fieldName System.String

The name of the field.

Returns

System.Threading.Tasks.Task<System.String>
For Date Fields: Returns the time zone associated with the date field. Returns null if the layer’s date fields are in unknown time zone.
For DateOnly, TimeOnly, or TimeStampOffset Fields: Returns null.
All other fields return null.

FieldsIndex.Has(string) Method

Checks if a field with the specified field name exists in the layer.

public System.Threading.Tasks.Task<bool> Has(string fieldName);

Parameters

fieldName System.String

The name of the field. The name is case-insensitive.

Returns

System.Threading.Tasks.Task<System.Boolean>

FieldsIndex.IsDateField(string) Method

Checks if a field with the specified field name is a date field.

public System.Threading.Tasks.Task<bool> IsDateField(string fieldName);

Parameters

fieldName System.String

The name of the field.

Returns

System.Threading.Tasks.Task<System.Boolean>