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

INetworkDataset.SourceByID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkDataset Interface > INetworkDataset.SourceByID Property
ArcGIS Developer Help

INetworkDataset.SourceByID Property

Network dataset source corresponding to the specified ID.

[Visual Basic .NET]
Public Function get_SourceByID ( _
    ByVal ID As Integer _
) As INetworkSource
public INetworkSource get_SourceByID (
    int ID
HRESULT get_SourceByID(
  long ID,
  INetworkSource** Source
ID [in]

ID is a parameter of type long Source [out, retval]
Source is a parameter of type INetworkSource**

Product Availability

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


Returns the source with the specified ID.  The ID is not equal to the index.  Rather it is the internal ID of the source as stored in the metadata tables.  It can be retrieved from the INetworkSource::ID property.

See Also

INetworkDataset Interface