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


IGraph.AddFeatureClass Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGraph Interface > IGraph.AddFeatureClass Method
ArcGIS Developer Help

IGraph.AddFeatureClass Method

Add the FeatureClass to this graph.

[Visual Basic .NET]
Public Sub AddFeatureClass ( _
    ByVal FeatureClass As IFeatureClass, _
    ByVal EnabledFieldName As String, _
    ByVal Role As esriNetworkClassAncillaryRole, _
    ByVal AncillaryRoleFieldName As String _
)
[C#]
public void AddFeatureClass (
    IFeatureClass FeatureClass,
    string EnabledFieldName,
    esriNetworkClassAncillaryRole Role,
    string AncillaryRoleFieldName
);
[C++]
HRESULT AddFeatureClass(
  IFeatureClass* FeatureClass,
  BSTR EnabledFieldName,
  esriNetworkClassAncillaryRole Role,
  BSTR AncillaryRoleFieldName
);
[C++]
Parameters
FeatureClass [in]

FeatureClass is a parameter of type IFeatureClass* EnabledFieldName [in]
EnabledFieldName is a parameter of type BSTR Role [in]
Role is a parameter of type esriNetworkClassAncillaryRole AncillaryRoleFieldName [in]
AncillaryRoleFieldName is a parameter of type BSTR

Product Availability

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

See Also

IGraph Interface