ServerHealthActivity.OnStart Method (IActivityHost)
Called when a service the provider supports is started; initializaes the health provider before the provider starts servicing.
Namespace: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly: AlertFramework (in AlertFramework.dll)
Syntax
public override bool OnStart(
IActivityHost service
)
public:
virtual bool OnStart(
IActivityHost^ service
) override
Public Overrides Function OnStart (
service As IActivityHost
) As Boolean
Parameters
service
Type: Microsoft.WindowsServer.Essentials.WindowsService.IActivityHostThe service to start.
Return Value
Type: System.Boolean
true if the service is started; otherwise, false.
See Also
ServerHealthActivity Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace
Return to top