Show / Hide Table of Contents

Constructor UtilityAssociation

UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement)

Initializes a new instance of the UtilityAssociation class with the specified type between the specified utility elements.

Declaration
public UtilityAssociation(UtilityAssociationType associationType, UtilityElement fromElement, UtilityElement toElement)
Parameters
Type Name Description
UtilityAssociationType associationType

The type of association between the FromElement and ToElement.

UtilityElement fromElement

The first participant in the association.

UtilityElement toElement

The second participant in the association.

Remarks

Use this constructor if the association type does not need to specify a different value for:

  • IsContainmentVisible. The default value is false.
  • FractionAlongEdge. The default value is 0.

See Also
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Boolean)
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Double)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 200.8
.NET Windows200.5 - 200.8
.NET Android200.5 - 200.8
.NET iOS200.5 - 200.8
.NET Framework200.5 - 200.8
UWP200.5 - 200.8

UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Boolean)

Initializes a new instance of the UtilityAssociation class with the specified type between the specified utility elements with IsContainmentVisible value.

Declaration
public UtilityAssociation(UtilityAssociationType associationType, UtilityElement fromElement, UtilityElement toElement, bool isContainmentVisible)
Parameters
Type Name Description
UtilityAssociationType associationType

The type of association between the FromElement and ToElement.

UtilityElement fromElement

The first participant in the association.

UtilityElement toElement

The second participant in the association.

System.Boolean isContainmentVisible

true if the content in the containment association is visible, false otherwise.

Remarks

This constructor is typically used when creating Containment association.

See Also
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement)
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Double)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 200.8
.NET Windows200.5 - 200.8
.NET Android200.5 - 200.8
.NET iOS200.5 - 200.8
.NET Framework200.5 - 200.8
UWP200.5 - 200.8

UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Double)

Initializes a new instance of the UtilityAssociation class with the specified type between the specified utility elements with the FractionAlongEdge value.

Declaration
public UtilityAssociation(UtilityAssociationType associationType, UtilityElement fromElement, UtilityElement toElement, double fractionAlongEdge)
Parameters
Type Name Description
UtilityAssociationType associationType

The type of association between the FromElement and ToElement.

UtilityElement fromElement

The first participant in the association.

UtilityElement toElement

The second participant in the association.

System.Double fractionAlongEdge

The relative location along the non-spatial edge where the junction is (logically) located.

Remarks

This constructor is typically used when creating JunctionEdgeObjectConnectivityMidspan association.

See Also
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement)
UtilityAssociation(UtilityAssociationType, UtilityElement, UtilityElement, Boolean)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 200.8
.NET Windows200.5 - 200.8
.NET Android200.5 - 200.8
.NET iOS200.5 - 200.8
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In This Article
Back to top Copyright © 2022 Esri.