ArcObjects Library Reference (GeoDatabase)  

INetSchemaEdit.PutAncillaryRole Method

Sets the ancillary role type and the name of the field containing the ancillary role information for the specified user class.

[Visual Basic .NET]
Public Sub PutAncillaryRole ( _
    ByVal UserClassID As Integer, _
    ByVal ancillaryRole As esriNetworkClassAncillaryRole, _
    ByVal AncillaryRoleFieldName As String _
)
[C#]
public void PutAncillaryRole (
    int UserClassID,
    esriNetworkClassAncillaryRole ancillaryRole,
    string AncillaryRoleFieldName
);
[C++]
HRESULT PutAncillaryRole(
  long UserClassID,
  esriNetworkClassAncillaryRole ancillaryRole,
  BSTR AncillaryRoleFieldName
);
[C++]

Parameters

UserClassID [in]   UserClassID is a parameter of type long ancillaryRole [in]

  ancillaryRole is a parameter of type esriNetworkClassAncillaryRole

AncillaryRoleFieldName   AncillaryRoleFieldName is a parameter of type BSTR

Product Availability

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

Remarks

PutAncillaryRole adds a new ancillary role description to the network.  An ancillary role is a source of sink for the network.  In order to have sources and sinks in your network, you need to define the user class that will contain the features, and the field name that will specify whether the feature is a source, sink, or neither.  PutAncillaryRole applies this definition to the network.

Only use this method on newly created stand-alone logical networks that do not have any topology.

See Also

INetSchemaEdit Interface