Show / Hide Table of Contents

Method StopAsync

StopAsync()

Asynchronously shuts down the LocalServer.

Declaration
public Task StopAsync()
Returns
Type Description
System.Threading.Tasks.Task

A task that represents the asynchronous stop operation.

Remarks

If you would like to execute some code in response to the LocalServer shutting down the StatusChanged event can be used to respond to this.

Exceptions
Type Condition
System.InvalidOperationException

Server can only be stopped when in the started state.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.8
.NET Framework100.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.