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
System.Threading.Tasks.Task<UtilityNetworkState>

A System.Threading.Tasks.Task that returns a 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 - 200.8
.NET Windows200.3 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.3 - 200.8
.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
System.Threading.CancellationToken cancellationToken

A token with which to cancel the operation if required.

Returns
Type Description
System.Threading.Tasks.Task<UtilityNetworkState>

A System.Threading.Tasks.Task that returns a 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 - 200.8
.NET Windows200.3 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.3 - 200.8
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In This Article
Back to top Copyright © 2022 Esri.