Method StartAsync
StartAsync()
Asynchronously starts the local server. The server can only be started from the STOPPED or FAILED states.
Declaration
public Task StartAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the asynchronous start operation. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Local server install path is not valid. |
System.InvalidOperationException | Server can only be started when in the stopped or failed state. |
System.IO.DirectoryNotFoundException | Folder location for 'AppDataPath' is not found. |
System.IO.DirectoryNotFoundException | Folder location for 'TempDataPath' is not found. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |
.NET Framework | 100.0 - 200.6 |