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


IEdgeFlag Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

IEdgeFlag Interface

Provides access to members that return and set properties that are specific to edge flags on the network.

Product Availability

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

When To Use

Use the IEdgeFlag interface to create a flag on an edge element in your network. You can specify how far along the edge you want the flag to be placed using the IEdgeFlag::Position method. This value can be a number between 0 and 1. A value of 0 means the flag will be located close to the FROM junction of an edge. A value of 1 means it will be located close to the TO junction of an edge.

You can also set the IEdgeFlag::TwoWay to be True or False. This is used by the ITraceFlowSolver::FindPath method. Setting TwoWay to true means the find path method will find the shortest path by going either direction along the edge from where you placed the flag.

Members

Description
Read/write property Position Position of the flag along the edge.
Read/write property TwoWay Indicates if the trace can proceed in either direction from this edge flag.

CoClasses that implement IEdgeFlag

CoClasses and Classes Description
EdgeFlag A container for defining a network flag on an edge element for a trace flow solver.

Remarks

Edge flags can only be created on edges. If you want to create a flag on a junction use IJunctionFlag.

[C#]

You can create an edge flag by doing the following:

INetFlag edgeFlag=new EdgeFlagClass() as INetFlag;
edgeFlag.UserClassID=userClassID;
edgeFlag.UserID=userID;
edgeFlag.UserSubID=userSubID;

To use your newly created edge flag for tracing, see the ITraceFlowSolver help for how to do it.

[Visual Basic .NET]

You can create an edge flag by doing the following:

Dim edgeFlag As INetFlag=New EdgeFlag
edgeFlag.UserClassID=userClassID 
edgeFlag.UserID=userID 
edgeFlag.UserSubID=userSubID

To use your newly created edge flag for tracing, see the ITraceFlowSolver help for how to do it.

See Also

INetFlag Interface | IJunctionFlag Interface | IEdgeFlag Interface

.NET Samples

Custom upstream trace task (Code Files: CustomUpstreamTraceTaskVBNet)

.NET Related Topics

NetworkAnalysis