ESRI.ArcGIS.ADF.Web
SubFields Property
See Also  Example
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 StringCollection
Visual Basic (Usage)Copy Code
Dim instance As QueryFilter
Dim value As StringCollection
 
instance.SubFields = value
 
value = instance.SubFields
C# 
public StringCollection SubFields {get; set;}

Return 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.

See Also

© 2010 All Rights Reserved.