Method CanAddAssociationAsync
CanAddAssociationAsync(UtilityAssociation)
Checks if the utility association can be added to the utility network.
Declaration
public Task<bool> CanAddAssociationAsync(UtilityAssociation association)
Parameters
| Type | Name | Description |
|---|---|---|
| UtilityAssociation | association | The association to be checked. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |
|
Remarks
Checks that all of the following conditions are met:
- the utility network is in a valid state and supports the association type.
- the specified association only includes elements that are accessible and that have the necessary association role and terminal selection.
- a utility rule exists that permits their association.
- the current user has the necessary permissions.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 200.8 |
| .NET Windows | 200.5 - 200.8 |
| .NET Android | 200.5 - 200.8 |
| .NET iOS | 200.5 - 200.8 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |
CanAddAssociationAsync(UtilityAssociationType, UtilityElement, UtilityElement)
Checks if a utility association with the specified type between the specified utility elements can be added to the utility network.
Declaration
public Task<bool> CanAddAssociationAsync(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. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |
|
Remarks
Checks that all of the following conditions are met:
- the utility network is in a valid state and supports the association type.
- the specified association only includes elements that are accessible and that have the necessary association role and terminal selection.
- a utility rule exists that permits their association.
- the current user has the necessary permissions.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 200.8 |
| .NET Windows | 200.5 - 200.8 |
| .NET Android | 200.5 - 200.8 |
| .NET iOS | 200.5 - 200.8 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |