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.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |
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.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |