Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Error As Exception |
C# | |
---|---|
public Exception Error {get;} |
If an error is encountered when starting the local service the StartCompleted event will be raised and the exception will be available in the Error property. It is therefore recommended that the Error property is always checked when starting local services to confirm the service started successfully.
Property Value
A System.Exception representing the error.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8