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


IGeometricNetwork.ClassesByNetworkAncillaryRole Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IGeometricNetwork.ClassesByNetworkAncillaryRole Property

The FeatureClasses with the specified ancillary role.

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

Parameters 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.

Remarks

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