This document is archived and information here might be outdated.  Recommended version.


IRow.HasOID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRow Interface > IRow.HasOID Property
ArcGIS Developer Help

IRow.HasOID Property

Indicates if the row has an OID.

[Visual Basic .NET]
Public ReadOnly Property HasOID As Boolean
[C#]
public bool HasOID {get;}
[C++]
HRESULT get_HasOID(
  Boolean* HasOID
);
[C++]
Parameters
HasOID [out, retval]

HasOID is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

If the table has been registered with the geodatabase it will have unique Object ID, automatically created by the register tool, and the HasOID property will be set to True. Tables not registered with the geodatabase will not have an OID column and the HasOID property will be set to False.  See the IClassSchemaEdit::RegisterAsObjectClass method for more information.

See Also

IRow Interface

.NET Samples

Implementing an XML builder external component