This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INATraversalResultQuery Interface > INATraversalResultQuery.FeatureClass Property (ArcObjects .NET 10.5 SDK) |
The feature class by element type.
[Visual Basic .NET] Public Function get_FeatureClass ( _ ByVal networkElementType As esriNetworkElementType _ ) As IFeatureClass
[C#] public IFeatureClass get_FeatureClass ( esriNetworkElementType networkElementType );
[C++]
HRESULT get_FeatureClass(
esriNetworkElementType networkElementType,
IFeatureClass** FeatureClass
);
[C++]
Parameters networkElementType [in]
networkElementType is a parameter of type esriNetworkElementType FeatureClass [out, retval]
FeatureClass is a parameter of type IFeatureClass
Use the FeatureClass property to return a feature class holding all of the NATraversalResultElements of a specific type (esriNETJunction, esriNETEdge, esriNETTurn).
This feature class can be accessed like any other feature class in ArcGIS.
This C# example shows how you can add a feature class returned by the FeatureClass property on INATraversalResultQuery to a map.
public void AddNATraversalResultToMap(INALayer naLayer, IMap map)This VB.NET example shows how you can add a feature class returned by the FeatureClass property on INATraversalResultQuery to a map.
Public Sub AddNATraversalResultToMap(ByVal naLayer As INALayer, ByVal map As IMap)