This document is archived and information here might be outdated. Recommended version. |
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
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.