ArcGIS Pro 2.6 API Reference Guide
Association Constructor(AssociationType,Element,Element,ContainmentVisibility)

ArcGIS.Core.Data.UtilityNetwork Namespace > Association Class > Association Constructor : Association Constructor(AssociationType,Element,Element,ContainmentVisibility)
The type of association between containerElement and contentElement. Typically, it is AssociationType.Containment.
An Element representing the container (e.g., a substation).
An Element representing the content to move into the container (e.g., a circuit breaker).
Specifies the visibility of contentElement.
Initializes a new instance of the Association class. Use this overload if type is AssociationType.Containment.
Syntax

Parameters

type
The type of association between containerElement and contentElement. Typically, it is AssociationType.Containment.
containerElement
An Element representing the container (e.g., a substation).
contentElement
An Element representing the content to move into the container (e.g., a circuit breaker).
containmentVisibility
Specifies the visibility of contentElement.
Exceptions
ExceptionDescription
type is invalid.
containerElement or contentElement is null.
type is AssociationType.JunctionEdgeObjectConnectivityMidspan.
Remarks
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Association Class
Association Members
Overload List