This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkQuery Interface > INetworkQuery.CreateNetworkElement Method (ArcObjects .NET 10.5 SDK) |
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
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.