Compartilhar via


GarbageCollectedTimer.Change Method (TimeSpan, TimeSpan)

 

Change the limit and interval of the timer.

Namespace:   Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly:  ProviderFramework (in ProviderFramework.dll)

Syntax

public void Change(
    TimeSpan dueTime,
    TimeSpan period
)
public:
void Change(
    TimeSpan dueTime,
    TimeSpan period
)
Public Sub Change (
    dueTime As TimeSpan,
    period As TimeSpan
)

Parameters

  • dueTime
    Type: System.TimeSpan

    The length of time to delay before invoking the callback specified when the GarbageCollectedTimer object was created. Specify zero to invoke the callback and restart the timer immediately.

  • period
    Type: System.TimeSpan

    The interval between invocations of the callback specified when the GarbageCollectedTimer object was created. Specify Infinite to disable periodic signaling.

See Also

Change Overload
GarbageCollectedTimer Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace

Return to top