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


INATraversalResult.SourceByName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INATraversalResult Interface > INATraversalResult.SourceByName Property
ArcGIS Developer Help

INATraversalResult.SourceByName Property

The network traversal source by name.

[Visual Basic .NET]
Public Function get_SourceByName ( _
    ByVal Name As String _
) As INATraversalResultSource
[C#]
public INATraversalResultSource get_SourceByName (
    string Name
);
[C++]
HRESULT get_SourceByName(
  BSTR Name,
  INATraversalResultSource** resultSource
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR resultSource [out, retval]
resultSource is a parameter of type INATraversalResultSource**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The SourceByName property returns an NATraversalResultSource object corresponding to the name of the source in the traversal result.

This name is not the same name as the source in the network dataset.  For the current ESRI Solvers, the name of this source is prefixed by "ND_" if it is representing a source in a network dataset.  This was done to avoid name collisions.

See Also

INATraversalResult Interface