ArcObjects Library Reference (GeoDatabase)  

INetworkDataset.SourceByID Property

Network dataset source corresponding to the specified ID.

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

Parameters

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.

Remarks

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

.NET Related Topics

How to access source features referenced by a network dataset