This document is archived and information here might be outdated. Recommended version. |
Create a query definition object.
[Visual Basic .NET] Public Function CreateQueryDef ( _ ) As IQueryDef
[C#] public IQueryDef CreateQueryDef ( );
[C++]
HRESULT CreateQueryDef(
void
);
If your application/site is not appropriately licensed, CreateQueryDef can return an error of FDO_E_NO_SCHEMA_LICENSE.
The CreateQueryDef method can be used to create a new query definition object that can be evaluated by returning a cursor.
With personal geodatabases, QueryDefs do not return newly inserted rows, within an edit session when the QueryDef contains a Where Clause. The edits must be saved and the QueryDef executed outside of the edit session or Search must be used to return the information.