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