TimerItem Constructor
Initializes a new instance of the TimerItem class.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
timerWheel As TimerWheel, _
timeSpan As TimeSpan _
)
'Usage
Dim timerWheel As TimerWheel
Dim timeSpan As TimeSpan
Dim instance As New TimerItem(timerWheel, _
timeSpan)
public TimerItem(
TimerWheel timerWheel,
TimeSpan timeSpan
)
Parameters
- timerWheel
Type: Microsoft.Rtc.Signaling.TimerWheel
The timer wheel associated with this item.
- timeSpan
Type: System.TimeSpan
The time span indicating when the timer will expire from now.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the timer wheel argument is null. |
ArgumentOutOfRangeException | Thrown when the time span is out of range. The maximum allowed value for a timer span is 65535 seconds (approx 18 hrs). |