laptop and a wrench

漏洞

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.

上次发布: August 26, 2016 ArcObjects SDK for the Microsoft .NET Framework
漏洞 ID 编号 BUG-000097730
已提交July 13, 2016
上次修改时间June 11, 2020
适用范围ArcObjects SDK for the Microsoft .NET Framework
找到的版本10.4.1
服务器平台Windows
Version Fixed10.5.0
状态Fixed

解决办法

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.

重现步骤

漏洞 ID: BUG-000097730

软件:

  • ArcObjects SDK for the Microsoft .NET Framework

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容