Method CanAddAssociationAsync
CanAddAssociationAsync(ArcGISFeature, UtilityAssociationsFilter, CancellationToken)
Checks if a UtilityAssociation can be added between the provided ArcGISFeature and the Feature this element is part of.
Declaration
public Task<bool> CanAddAssociationAsync(ArcGISFeature feature, UtilityAssociationsFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ArcGISFeature | feature | The ArcGISFeature participating in the association. |
| UtilityAssociationsFilter | filter | The UtilityAssociationsFilter used to check the feature's role or function. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<bool> |
|
Remarks
Checks that all of the following conditions are met:
- the feature belongs to the network source, asset type, and asset group defined in the provided UtilityAssociationsFilter
- utility rules permit the use of the provided feature to create an association.
- any expressions set on the element allow editing associations.
- the current user has the necessary permissions.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |