ArcGIS Pro 2.7 API Reference Guide
ObjectID Property (Element)

ArcGIS.Core.Data.UtilityNetwork Namespace > Element Class : ObjectID Property
Gets the ObjectID of the Row represented by the Element.
Syntax
public long ObjectID {get;}
Public ReadOnly Property ObjectID As Long
Remarks
If the Element was constructed using an AssetType and GlobalID, rather than a ArcGIS.Core.Data.Row, this property will return a -1. The Element does not fetch the row to obtain this information if it doesn't already have it.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Element Class
Element Members