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

IGeometricNetwork.ClassesByNetworkAncillaryRole Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGeometricNetwork Interface > IGeometricNetwork.ClassesByNetworkAncillaryRole Property
ArcGIS Developer Help

IGeometricNetwork.ClassesByNetworkAncillaryRole Property

The FeatureClasses with the specified ancillary role.

[Visual Basic .NET]
Public Function get_ClassesByNetworkAncillaryRole ( _
    ByVal Role As esriNetworkClassAncillaryRole _
) As IEnumFeatureClass
public IEnumFeatureClass get_ClassesByNetworkAncillaryRole (
    esriNetworkClassAncillaryRole Role
HRESULT get_ClassesByNetworkAncillaryRole(
  esriNetworkClassAncillaryRole Role,
  IEnumFeatureClass** Classes
Role [in]

Role is a parameter of type esriNetworkClassAncillaryRole Classes [out, retval]
Classes is a parameter of type IEnumFeatureClass**

Product Availability

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


The ClassesByNetworkAncillaryRole property returns an enumeration of feature classes based on whether or not the feaure class has been assigned an ancillary role within the geometric network.  Since the differentiation between source and sink roles occurs at the feature level, feature classes cannot be returned based on a specific ancillary role.

The orphan junction feautre class will always be returned when esriNCARNone or a value of 0 is supplied for the role.

See Also

IGeometricNetwork Interface