ArcGIS Pro 2.7 API Reference Guide
Association Constructor(AssociationType,Element,Element,Double)

ArcGIS.Core.Data.UtilityNetwork Namespace > Association Class > Association Constructor : Association Constructor(AssociationType,Element,Element,Double)
The type of association between junction and edgeObject. Typically, it is AssociationType.JunctionEdgeObjectConnectivityMidspan.
An Element representing the junction or non-spatial junction object.
An Element representing the non-spatial edge object.
The percent along the mid span of edgeObject to which junction is connected. If type is AssociationType.JunctionEdgeObjectConnectivityMidspan, this value must be greater than 0.0 and less than 1.0.
Initializes a new instance of the Association class. Use this overload if type is AssociationType.JunctionEdgeObjectConnectivityMidspan, AssociationType.JunctionEdgeObjectConnectivityFromSide or AssociationType.JunctionEdgeObjectConnectivityToSide.
Syntax
Public Function New( _
   ByVal type As AssociationType, _
   ByVal junction As Element, _
   ByVal edgeObject As Element, _
   ByVal percentAlong As Double _
)

Parameters

type
The type of association between junction and edgeObject. Typically, it is AssociationType.JunctionEdgeObjectConnectivityMidspan.
junction
An Element representing the junction or non-spatial junction object.
edgeObject
An Element representing the non-spatial edge object.
percentAlong
The percent along the mid span of edgeObject to which junction is connected. If type is AssociationType.JunctionEdgeObjectConnectivityMidspan, this value must be greater than 0.0 and less than 1.0.
Exceptions
ExceptionDescription
type is invalid.
junction or edgeObject is null.
If type is AssociationType.JunctionEdgeObjectConnectivityMidspan and percentAlong is not greater than 0.0 and less than 1.0.
Remarks
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Association Class
Association Members
Overload List