ESRI.ArcGIS.ADF.Web
SubFields Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.Web Namespace > QueryFilter Class : SubFields Property




Defines a collection of field names to include in a dataset returned when executing a query.

Syntax

Visual Basic (Declaration) 
Public Property SubFields As ESRI.ArcGIS.ADF.StringCollection
Visual Basic (Usage)Copy Code
Dim instance As QueryFilter
Dim value As ESRI.ArcGIS.ADF.StringCollection
 
instance.SubFields = value
 
value = instance.SubFields
C# 
public ESRI.ArcGIS.ADF.StringCollection SubFields {get; set;}

Property Value

ESRI.ArcGIS.ADF.StringCollection. Web ADF defined collection of field name strings.

Example

C#Copy Code
ESRI.ArcGIS.ADF.Web.QueryFilter queryfilter = new ESRI.ArcGIS.ADF.Web.QueryFilter();
string fieldlist = "CNTRY_NAME, LONG_NAME";
ESRI.ArcGIS.ADF.StringCollection strcollection = new ESRI.ArcGIS.ADF.StringCollection(fieldlist, ',');
queryfilter.SubFields = strcollection;

Remarks

Data source implementations of the QueryFunctionality Query method differ on how the SubFields property is used. For example, the ArcGIS Server implementation will throw an exception if a field name is not available in the queried data layer. Whereas the ArcIMS implementation will ignore the missing field and return only those field names that are present in the queried data layer.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.