Visual Basic (Declaration) | |
---|---|
Public Overrides NotOverridable Sub Start() |
C# | |
---|---|
public override void Start() |
The Start method will check whether this local service is already in the LocalServiceStatus.Running state and raise an System.InvalidOperationException if necessary. The Path property will also be checked for a valid geoprocessing package.
The StartAsync method call should be enclosed in a try-catch block to handle any exceptions that might be raised.
Exception | Description |
---|---|
System.InvalidOperationException | StartAsync should can not be called if the local service is already in the LocalServiceStatus.Running state. |
System.InvalidOperationException | An exception is raised if the Path property does not reference a valid geoprocessing package file. |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8