Visual Basic (Declaration) | |
---|---|
Public Overloads Overrides NotOverridable Function StartAsync() As Task(Of LocalService) |
C# | |
---|---|
public override Task<LocalService> StartAsync() |
Return Value
A Task object on which the Result property contains the LocalService instance.Exception | Description |
---|---|
System.InvalidOperationException | StartAsync should can not be called if the local service is already in the LocalServiceStatus.Running state. |
System.InvalidOperationException | The Path property must specify a valid geoprocessing package. |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8