IQueryFilter pQF = new QueryFilterClass();
IQueryFilterDefinition queryFilterDef = (IQueryFilterDefinition)pQF;
queryFilterDef.PostfixClause = "ORDER BY " + (axMapControl1.get_Layer(0) as IFeatureLayer).DisplayField;
IFeatureCursor pFeatureCursor = pFC.Search(pQF, true);//pFC,featureclass

        还需要注意一点,此属性不适用与FileGDB:Please note, file geodatabases do not support the PostFixClause property, and any specifications within the PostFixClause will be ignored。

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>