ArcGIS Pro 2.6 API Reference Guide
GetObjectIDFields Method

ArcGIS.Core.Data Namespace > QueryDescription Class : GetObjectIDFields Method
Gets a comma-separated unique key field(s) that fulfill the role of a table's objectID. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string GetObjectIDFields()
Public Function GetObjectIDFields() As String

Return Value

A comma-separated unique key field(s) that fulfill the role of a table's objectID.
Exceptions
ExceptionDescription
A database-related exception has occurred.
Remarks
The value returned from this method may be the same as that of GetObjectIDColumnName if IsObjectIDMappedColumnRequired is false. In other words, if a virtual ObjectID column is not required, the values returned from aforementioned methods may be identical.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

QueryDescription Class
QueryDescription Members