Partager via


ClientHealthActivity.OnStart Method (IActivityHost)

 

Called when the service starts; implements the initiation before the the health 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.IActivityHost

    The service that is about to be started.

Return Value

Type: System.Boolean

true if the service was started; otherwise, false.

See Also

ClientHealthActivity Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top