This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITopologyErrorFeature Interface > ITopologyErrorFeature.OriginOID Property (ArcObjects .NET 10.5 SDK) |
ObjectID of the origin feature that created the topology error.
[Visual Basic .NET] Public ReadOnly Property OriginOID As Integer
[C#] public int OriginOID {get;}
[C++]
HRESULT get_OriginOID(
long* OID
);
[C++]
Parameters OID [out, retval] OID is a parameter of type long
The OriginOID and DestinationOID properties represent the object IDs of the origin and destination features that created the topology error.
In general, all topology errors for which only the origin class has been specified will return values for the OriginClassID and OriginOID properties and a value of zero for the DestinationClassID and DestinationOID properties. The exception is for topology errors generated from the esriTRTNoGaps rule, which will return a value of zero for the OriginOID as well as DestinationClassID and DestinationOID properties. In addition, topology rules whose origin and destination feature class have been specified will generally return zero for the Destination feature class properties. The exceptions to this rule are:
The exception to both of these statements is the esriTRTAreaAreaCoverEachOther rule, which may generate topology errors referencing either the Origin or Destination feature class.