'Declaration Public Event ServiceRemoved As EventHandler(Of ServiceEventArgs)
public event EventHandler<ServiceEventArgs> ServiceRemoved
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.
Property | Description |
---|---|
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. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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