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 | |
---|---|---|
GarbageCollectedTimer(TimerCallback) | Initializes a new instance of the GarbageCollectedTimer class with the specified callback. |
Methods
Name | Description | |
---|---|---|
Change(Int32, Int32) | Change the limit and interval of the timer. |
|
Change(TimeSpan, TimeSpan) | Change the limit and interval of the timer. |
|
Change(UInt32, UInt32) | Change the limit and interval of the timer. |
|
Dispose() | Release all resources that are used by the GarbageCollectedTimer object. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | Releases unmanaged resources and performs other cleanup operations before the GarbageCollectedTimer object is reclaimed by garbage collection.(Overrides Object.Finalize().) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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