Share via


GarbageCollectedTimer Class

 

Represents a timer class that is mostly API-compliant with System.Threading.Timer, which is properly garbage-collected when it goes out of scope. This class also supports the Dispose method for deterministic cleanup.

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

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework.GarbageCollectedTimer

Syntax

public sealed class GarbageCollectedTimer : IDisposable
public ref class GarbageCollectedTimer sealed : IDisposable
Public NotInheritable Class GarbageCollectedTimer
    Implements IDisposable

Constructors

Name Description
System_CAPS_pubmethod GarbageCollectedTimer(TimerCallback)

Initializes a new instance of the GarbageCollectedTimer class with the specified callback.

Methods

Name Description
System_CAPS_pubmethod Change(Int32, Int32)

Change the limit and interval of the timer.

System_CAPS_pubmethod Change(TimeSpan, TimeSpan)

Change the limit and interval of the timer.

System_CAPS_pubmethod Change(UInt32, UInt32)

Change the limit and interval of the timer.

System_CAPS_pubmethod Dispose()

Release all resources that are used by the GarbageCollectedTimer object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Releases unmanaged resources and performs other cleanup operations before the GarbageCollectedTimer object is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace

Return to top