Method GetFields
GetFields(long)
The collection of Field objects for features created with this template.
Declaration
public IReadOnlyList<Field> GetFields(long layerId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | layerId | An ID that identifies the layer for which the fields are requested. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<Field> | The collection of Field objects for this template. |
Remarks
Use this to determine how to display or convert attribute values into the proper data type and whether they are required by the template.
The fields returned are from the specified layer's definition, provided this layer is loaded and is one of the LayerIds. They may also be from field overrides from the layer's subtype matching this template's subtype if available.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The specified |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |