Version

ServiceAdded Event

Raised after a service is registered.
Syntax
'Declaration
 
Public Event ServiceAdded As EventHandler(Of ServiceEventArgs)
public event EventHandler<ServiceEventArgs> ServiceAdded
Event Data

The event handler receives an argument of type ServiceEventArgs containing data related to this event. The following ServiceEventArgs properties provide information specific to this event.

PropertyDescription
Service Gets the service which was registered or unregistered.
ServiceKey Gets The case-sensitively unique key with which the service was registered or null if the service was registered with a Type.
ServiceType Gets the type with which the service was registered or null if the service was registered with a key.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also