Show / Hide Table of Contents

Method GetStateAsync

GetStateAsync()

Asynchronously retrieves the current state of the utility network.

Declaration
public Task<UtilityNetworkState> GetStateAsync()
Returns
Type Description
Task<UtilityNetworkState>

The current status of UtilityNetworkState.

Remarks

This state is unavailable if the utility network does not support the network state.

See Also
SupportsNetworkState

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.8
.NET200.3 - 300.0
.NET Windows200.3 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.3 - 300.0
.NET Framework200.3 - 200.8
UWP200.3 - 200.8

GetStateAsync(CancellationToken)

Asynchronously retrieves the current state of the utility network.

Declaration
public Task<UtilityNetworkState> GetStateAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

A token with which to cancel the operation if required.

Returns
Type Description
Task<UtilityNetworkState>

The current status of UtilityNetworkState.

Remarks

This state is unavailable if the utility network does not support the network state.

Exceptions
Type Condition
InvalidOperationException

The utility network does not support the network state. This is determined by the boolean value SupportsNetworkState.

GeodatabaseClosedException

The Geodatabase is closed.

See Also
SupportsNetworkState

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.8
.NET200.3 - 300.0
.NET Windows200.3 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.3 - 300.0
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.