ESRI.ArcGIS.ADF.IMS | |
SubFields Property | |
See Also |
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Filter Class : SubFields Property |
Visual Basic (Declaration) | |
---|---|
Public Property SubFields As StringCollection |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public StringCollection SubFields {get; set;} |
Specifies which fields from the layer are returned in an attribute query. If SubFields is not specified, all fields are returned. All fields are also returned if the value "#ALL#" is included in the string collection.
Multiple fields can be included in the SubFields array. The number of fields in the arrary is limited to 254.
If SubFields are specified and feature geometry is requested, it may be necessary to include a value of "#SHAPE#" (see QueryParameters.ReturnGeometries).
The SubFields array can include fields from a layer table or a joined table.
- For shapefiles with no joined tables, the field can be referenced using
the short format.
field="AREA" - For shapefiles with joined tables, the name of the joined table must be
included along with the field.
field="JOINEDTABLE.AREA" - For ArcSDE layers with or without joined tables, the field must be
referenced using the full long format.
field="ARCSDENAME.TABLE.AREA"
Performance is generally better if the field names are all upper case.
Field names for a feature layer may be obtained from the FeatureLayer.Dataset property, in the dataset's Fields property.
SubFields has no effect when the Filter is used only for display of selected features on a map.