This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkSource Interface > INetworkSource.ID Property (ArcObjects .NET 10.5 SDK) |
Unique identifier of this network source.
[Visual Basic .NET] Public ReadOnly Property ID As Integer
[C#] public int ID {get;}
[C++]
HRESULT get_ID(
long* ID
);
[C++]
Parameters ID [out, retval] ID is a parameter of type long
Each source in a Network Dataset is identified by a unique value, the ID property. The ID property can be used to get a reference to the corresponding network source through the INetworkDataset::SourceByID property. This ID is different than the ID value returned by the IObjectClass::ObjectClassID property.
As with ObjectID values, SourceID values are never reused. They are not guaranteed to be sequential, but are guaranteed to be in increasing order based on when the source was added to the network. Unless the source is added or deleted from the DataElement, the SourceID values will remain constant after the INetworkDataset::UpdateSchema method is called.