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)

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

public ref class GarbageCollectedTimer sealed : IDisposable

NameDescription
System_CAPS_pubmethodGarbageCollectedTimer(TimerCallback^)

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

NameDescription
System_CAPS_pubmethodChange(Int32, Int32)

Change the limit and interval of the timer.

System_CAPS_pubmethodChange(TimeSpan, TimeSpan)

Change the limit and interval of the timer.

System_CAPS_pubmethodChange(UInt32, UInt32)

Change the limit and interval of the timer.

System_CAPS_pubmethodDispose()

Release all resources that are used by the GarbageCollectedTimer object.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top

Community Additions

ADD
Show: