ArcGIS Pro 2.6 API Reference Guide
SubFields Property (QueryFilter)

ArcGIS.Core.Data Namespace > QueryFilter Class : SubFields Property
Gets or sets a comma (,) delimited string containing the names of fields for which values should be returned by the query.
Syntax
public string SubFields {get; set;}
Public Property SubFields As String
Remarks

The subfield property requests a minimum set of fields to return values for, by restricting the set of fields for which values are returned you can optimize the performance of the query when using a query filter. Additional values may be returned for fields that the query requires (e.g., ObjectID or Shape fields). Fields not included in the subfields list or required by the query are still present in the rows returned, but are not populated with values. Including all of the fields in the row ensures that the field index position is constant no matter how it was hydrated.

The default setting for subfields is to request values to be returned for all fields. The strings of "*" or "" can be set to return the query to this default. The default of returning all fields should always be used if the intent of the operation is to alter the values of the row and store it.

To set the subfields property to request the values to be returned for the "Name" and "Age" fields a string of "Name, Age" should be provided (white space is optional).

It is not required to set the subfields property if the query filter is to be used in a context where no rows are returned (e.g., Table.Select).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

QueryFilter Class
QueryFilter Members