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


INetworkQuery.CreateNetworkElement Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkQuery Interface > INetworkQuery.CreateNetworkElement Method
ArcGIS Developer Help

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
);
[C++]
Parameters
ElementType [in]

ElementType is a parameter of type esriNetworkElementType

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 Samples

ArcGIS Network Analyst extension barrier location editor