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
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.3 - 200.8 |
| .NET | 200.3 - 300.0 |
| .NET Windows | 200.3 - 300.0 |
| .NET Android | 200.3 - 300.0 |
| .NET iOS | 200.3 - 300.0 |
| .NET Framework | 200.3 - 200.8 |
| UWP | 200.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
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.3 - 200.8 |
| .NET | 200.3 - 300.0 |
| .NET Windows | 200.3 - 300.0 |
| .NET Android | 200.3 - 300.0 |
| .NET iOS | 200.3 - 300.0 |
| .NET Framework | 200.3 - 200.8 |
| UWP | 200.3 - 200.8 |