Change Method (DateTime, TimeSpan)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Changes the start time and the interval between method invocations for a timer, using DateTime and TimeSpan values to measure time intervals.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Sub Change ( _
dueTime As DateTime, _
period As TimeSpan _
)
public void Change(
DateTime dueTime,
TimeSpan period
)
public:
void Change(
DateTime dueTime,
TimeSpan period
)
member Change :
dueTime:DateTime *
period:TimeSpan -> unit
public function Change(
dueTime : DateTime,
period : TimeSpan
)
Parameters
- dueTime
Type: System. . :: . .DateTime
The DateTime value that represents the amount of time the timer will wait before the callback parameter invokes its methods, in milliseconds. Specify Infinite to prevent the timer from starting. Specify 0 (zero) to start the timer immediately.
- period
Type: System. . :: . .TimeSpan
The TimeSpan value that represents the time interval between invocations of the methods referenced by the delegate specified at Timer construction time, in milliseconds. Specify Infinite to disable periodic signaling.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.