This document is archived and information here might be outdated. Recommended version. |
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
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.