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 |
---|---|
Task | A task that represents the asynchronous start operation. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Local server install path is not valid. |
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 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |