laptop and a wrench

Bogue

The QueryFilter does not function, and errors are returned for methods that require IQueryFilter parameters, such as IFeatureClass.Search, IFeatureSelection.SelectFeatures, and so on, in external ArcObjects applications that access ArcMap using the IAppROT interface.

Dernière publication: August 26, 2016 ArcObjects SDK
Numéro d’ID de bogue BUG-000097730
EnvoiJuly 13, 2016
Dernière modificationSeptember 4, 2025
S’applique àArcObjects SDK
Version trouvée10.4.1
Système d’exploitationWindows OS
Version de correction10.5.0
StatutFixed

Solution de contournement

Use IObjectFactory.Create to create the QueryFilter object instead of the new keyword to ensure the QueryFilter functions as expected from external applications, as shown in the following code: IQueryFilter pQF = new QueryFilter(); string classID = pQF.GetType().GUID.ToString("B"); /// appRot application space IObjectFactory objectFactory = (IObjectFactory)pAPP; pQF = (IQueryFilter)objectFactory.Create(classID); For more information about this workaround, refer to the document at http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#56eba175-54c1-46b4-801a-fc968e582581.htm.

Étapes pour reproduire

ID de bogue: BUG-000097730

Logiciel:

  • ArcObjects SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement