Class QueryDefClass
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
[Guid("FBF57160-A05D-11D4-A64C-0008C711C8C1")]
[ClassInterface(ClassInterfaceType.None)]
public class QueryDefClass : QueryDef, IQueryDef
- Inheritance
-
QueryDefClass
- Implements
- Inherited Members
Explicit Interface Implementations
Evaluate()
Evaluate the query and return a cursor on the result set.
virtual ICursor Evaluate()
Returns
Remarks
The IQueryDef interface is used to set up and define the query and also provides an Evaluate method that is used to execute the query, returning a cursor.
SubFields
The comma delimited list of field names for the query.
virtual string SubFields { get; set; }
Returns
Remarks
The following formats are used for the SubFields property of a QueryDef against an ArcSDE datasource:
Format 1: "*"
This returns all fields on all tables. If duplicate column names are found, the field names will be prefixed with the table name (table.field_name).
Format 2: "field1,field2,field3"
Returns only the fields requested. (Separate field names by commas but do not add a space after or before the comma)
Format 3: "table1.*,table2.field1,table3.field2"
Returns all of the fields from table1, field1 from table2 and field 2 from table3.
Format 1: "*"
This returns all fields on all tables. If duplicate column names are found, the field names will be prefixed with the table name (table.field_name).
Format 2: "field1,field2,field3"
Returns only the fields requested. (Separate field names by commas but do not add a space after or before the comma)
Format 3: "table1.*,table2.field1,table3.field2"
Returns all of the fields from table1, field1 from table2 and field 2 from table3.
Tables
The comma delimited list of table names for the query.
virtual string Tables { get; set; }
Returns
Remarks
Returns a string containing the name of a single table (or a list of table names when used in a join). When used with an ArcSDE datasource, the table name will be prefixed with the owner name (owner.mytable) if the table is not owned by the current workspace.
WhereClause
The where clause for the query.
virtual string WhereClause { get; set; }
Returns
Remarks
For more information about where clauses, see IQueryFilter.WhereClause.