ArcObjects Library Reference (GeoDatabase)  

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