laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: August 26, 2016 ArcObjects SDK for the Microsoft .NET Framework
Bug-ID-Nummer BUG-000097730
EingereichtJuly 13, 2016
Zuletzt geändertJune 11, 2020
Gilt fürArcObjects SDK for the Microsoft .NET Framework
Gefunden in Version10.4.1
Server-PlattformWindows
Version Fixed10.5.0
StatusFixed

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000097730

Software:

  • ArcObjects SDK for the Microsoft .NET Framework

Hilfe von ArcGIS-Expert*innen erhalten

Technischen Support kontaktieren

Die Esri Support-App herunterladen

Zu den Download-Optionen

Weitere Informationen zu diesem Thema erkunden