dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Layers
Field Class
Information about each field in a layer. Field objects must be constructed when creating a FeatureLayer from
client-side graphics. This class allows you to define the schema of each field in the FeatureLayer.
ArcGIS
JS API
</a>
public class Field : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Field
Constructors
Field() Constructor
Parameterless constructor for use as a razor component
public Field();
Field(FieldType, string, string, string, Nullable, Nullable, Nullable, object, Nullable) Constructor
Creates a new Field in code with parameters
public Field(dymaptic.GeoBlazor.Core.Components.Layers.FieldType type, string? name=null, string? alias=null, string? description=null, System.Nullable<int> length=null, System.Nullable<bool> editable=null, System.Nullable<bool> nullable=null, object? defaultValue=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.FieldValueType> valueType=null);
Parameters
type
FieldType
The data type of the field.
name
System.String
The name of the field.
alias
System.String
The display name for the field.
description
System.String
Contains information describing the purpose of each field.
length
System.Nullable<System.Int32>
The field length.
editable
System.Nullable<System.Boolean>
Indicates whether the field is editable.
nullable
System.Nullable<System.Boolean>
Indicates if the field can accept null values.
defaultValue
System.Object
The default value set for the field.
valueType
System.Nullable<FieldValueType>
The types of values that can be assigned to a field.
Properties
Field.Alias Property
The display name for the field.
public string? Alias { get; set; }
Property Value
Field.DefaultValue Property
The default value set for the field.
public object? DefaultValue { get; set; }
Property Value
Field.Description Property
Contains information describing the purpose of each field.
public string? Description { get; set; }
Property Value
Field.Editable Property
Indicates whether the field is editable.
public System.Nullable<bool> Editable { get; set; }
Property Value
System.Nullable<System.Boolean>
Field.Length Property
The field length.
public System.Nullable<int> Length { get; set; }
Property Value
Field.Name Property
The name of the field.
public string? Name { get; set; }
Property Value
Field.Nullable Property
Indicates if the field can accept null values.
public System.Nullable<bool> Nullable { get; set; }
Property Value
System.Nullable<System.Boolean>
Field.Type Property
The data type of the field.
public dymaptic.GeoBlazor.Core.Components.Layers.FieldType Type { get; set; }
Property Value
Field.ValueType Property
The types of values that can be assigned to a field.
public System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.FieldValueType> ValueType { get; set; }