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


INetworkAnalysisExt.FeatureLayer Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (EditorExt)  

INetworkAnalysisExt.FeatureLayer Property

The feature layer in the Network Analysis extension in the specified index.

[Visual Basic .NET]
Public Function get_FeatureLayer ( _
    ByVal index As Integer _
) As IFeatureLayer
[C#]
public IFeatureLayer get_FeatureLayer (
    int index
);

Product Availability

Available with ArcGIS Desktop.

Remarks

The Network Analysis Extension manages the feature layers for the current network. Only those feature layers added to the Extension are considered when the user interacts with the map, such as adding flags and barriers using the Flag and Barrier tools, displaying the flow arrows, and drawing the results of a trace task.
The FeatureLayer propety returns a feature layer for the current network that has been added to the Network Analysis Extension using the AddLayer method.
In general, it is not necessary to manually add and drop layers from the Network Analysis Extension, as the Extension automatically performs this when a feature layer from the current network is added or deleted from the focus map of the document.

See Also

INetworkAnalysisExt Interface

.NET Samples

Custom upstream trace task (Code Files: CustomUpstreamTraceTaskVBNet)