ArcGIS Pro 2.6 API Reference Guide
Differences(Table,DifferenceType,QueryFilter) Method

ArcGIS.Core.Data Namespace > Table Class : Differences(Table,DifferenceType,QueryFilter) Method
The difference table that this source table uses to retrieve rows that are different based on the specified differenceType.
Indicates which type of difference to return.
This argument is optional. If unset or set to null, a default query filter will be used, which will cause all difference rows to be returned.
Gets a DifferenceCursor that can be used to retrieve rows based on the specified differenceType. Differences can be obtained for transactional, multi-branch or historical versions. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

targetTable
The difference table that this source table uses to retrieve rows that are different based on the specified differenceType.
differenceType
Indicates which type of difference to return.
queryFilter
This argument is optional. If unset or set to null, a default query filter will be used, which will cause all difference rows to be returned.

Return Value

An instance of DifferenceCursor.
Exceptions
ExceptionDescription
targetTable is null.

targetTable is not from an enterprise geodatabase.

-or-

This table/feature class is virtual in nature, e.g., a joined table.

-or-

Multi-branch versioning does not support DifferenceType.UpdateUpdate, DifferenceType.UpdateDelete and DifferenceType.DeleteUpdate as the differenceType for this operation.

-or-

Multi-branch versioning requires the source table to be from a child branch and not DEFAULT.

-or-

Multi-branch versioning does not allow this operation to execute in client-server mode.

A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Table Class
Table Members