ArcObjects Library Reference (GeoDatabase)  

INetworkQuery.CreateNetworkElement Method

Creates an uninitialized network element of the specified type for use in network dataset queries.

[Visual Basic .NET]
Public Function CreateNetworkElement ( _
    ByVal ElementType As esriNetworkElementType _
) As INetworkElement
[C#]
public INetworkElement CreateNetworkElement (
    esriNetworkElementType ElementType
);
[C++]
HRESULT CreateNetworkElement(
  esriNetworkElementType ElementType,
  INetworkElement** Element
);
[C++]

Parameters

ElementType [in]

  ElementType is a parameter of type esriNetworkElementType

Element [out, retval]

  Element is a parameter of type INetworkElement

Product Availability

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

Remarks

The CreateNetworkElement method creates an empty network element object of the specified element type.  This object is passed to the Query methods on the INetworkQuery, INetworkForwardStarAdjacencies, INetworkJunction, INetworkEdge, and INetworkTurn interfaces.  When calling these Query methods, the empty network element object is populated with the appropriate information from the queried element.

See Also

INetworkQuery Interface

.NET Snippets

Display Network Adjacency in MessageBox |

.NET Samples

Network Analyst barrier location editor (Code Files: EditorForm) |