| Visual Basic (Declaration) | |
|---|---|
Public Event ServiceAdded As EventHandler(Of ServiceAddedEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ServiceAdministrator Dim handler As EventHandler(Of ServiceAddedEventArgs) AddHandler instance.ServiceAdded, handler | |
| C# | |
|---|---|
public event EventHandler<ServiceAddedEventArgs> ServiceAdded | |
| Managed Extensions for C++ | |
|---|---|
public: __event EventHandler<ServiceAddedEventArgs*>* ServiceAdded | |
| C++/CLI | |
|---|---|
public: event EventHandler<ServiceAddedEventArgs^>^ ServiceAdded | |
The event handler receives an argument of type ServiceAddedEventArgs containing data related to this event. The following ServiceAddedEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Service | Gets the service that was added. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code