'Declaration
Public Event UVBulbRemainingDurationChanged As EventHandler(Of TimeSpan)
'Usage
Dim instance As PIXLClient Dim handler As EventHandler(Of TimeSpan) AddHandler instance.UVBulbRemainingDurationChanged, handler
public event EventHandler<TimeSpan> UVBulbRemainingDurationChanged
public: event EventHandler<TimeSpan>^ UVBulbRemainingDurationChanged
Event Data
The event handler receives an argument of type TimeSpan containing data related to this event. The following TimeSpan properties provide information specific to this event.
Property | Description |
---|---|
Days | Gets the days component of the time interval represented by the current System.TimeSpan structure. |
Hours | Gets the hours component of the time interval represented by the current System.TimeSpan structure. |
Milliseconds | Gets the milliseconds component of the time interval represented by the current System.TimeSpan structure. |
Minutes | Gets the minutes component of the time interval represented by the current System.TimeSpan structure. |
Seconds | Gets the seconds component of the time interval represented by the current System.TimeSpan structure. |
Ticks | Gets the number of ticks that represent the value of the current System.TimeSpan structure. |
TotalDays | Gets the value of the current System.TimeSpan structure expressed in whole and fractional days. |
TotalHours | Gets the value of the current System.TimeSpan structure expressed in whole and fractional hours. |
TotalMilliseconds | Gets the value of the current System.TimeSpan structure expressed in whole and fractional milliseconds. |
TotalMinutes | Gets the value of the current System.TimeSpan structure expressed in whole and fractional minutes. |
TotalSeconds | Gets the value of the current System.TimeSpan structure expressed in whole and fractional seconds. |
Example
This sample shows how to handle the UVBulbRemainingDurationChanged event.
// Subscribe to UVBulbRemainingDurationChanged events. pixl.UVBulbRemainingDurationChanged += (sender, duration) => { // Publish an update to the Console. Console.WriteLine($"PIXL's UV bulb has {duration} remaining."); };
Requirements
Target Platforms: 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