Show / Hide Table of Contents

Class TimerEx

Extensión de la clase TimerEx. provee de toda la funcionalidad previamente disponible, e incluye algunas extensiones útiles.

Inheritance
object
MarshalByRefObject
Component
Timer
TimerEx
Implements
IComponent
ISupportInitialize
IDisposableEx
IDisposable
Inherited Members
Timer.BeginInit()
Timer.Close()
Timer.Dispose(bool)
Timer.EndInit()
Timer.AutoReset
Timer.Interval
Timer.Site
Timer.SynchronizingObject
Timer.Elapsed
Component.Dispose()
Component.GetService(Type)
Component.ToString()
Component.CanRaiseEvents
Component.Container
Component.DesignMode
Component.Events
Component.Disposed
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: TheXDS.MCART.Types
Assembly: MCART.dll
Syntax
public class TimerEx : Timer, IComponent, ISupportInitialize, IDisposableEx, IDisposable

Constructors

| Edit this page View Source

TimerEx()

Initializes a new instance of the TimerEx.

Declaration
public TimerEx()
| Edit this page View Source

TimerEx(double)

Initializes a new instance of the TimerEx y establece la propiedad Interval en el número de milisegundos especificado.

Declaration
public TimerEx(double interval)
Parameters
Type Name Description
double interval

Tiempo, en milisegundos, entre eventos. Este valor debe ser mayor que cero y menor que MaxValue.

Properties

| Edit this page View Source

Enabled

Obtiene o establece un valor que indica si este TimerEx debe generar el evento Elapsed.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

IsDisposed

Obtiene un valor que indica si este objeto ha sido desechado.

Declaration
public bool IsDisposed { get; }
Property Value
Type Description
bool
| Edit this page View Source

StartTime

Indica el momento de inicio de este TimerEx.

Declaration
public DateTime? StartTime { get; }
Property Value
Type Description
DateTime?
| Edit this page View Source

TimeLeft

Indica la cantidad de tiempo disponible antes de cumplir con el intervalo establecido en Interval.

Declaration
public TimeSpan? TimeLeft { get; }
Property Value
Type Description
TimeSpan?

Methods

| Edit this page View Source

Reset()

Reinicia este TimerEx.

Declaration
public void Reset()
| Edit this page View Source

Start()

Empieza a generar el evento Elapsed al establecer Enabled en true.

Declaration
public void Start()
| Edit this page View Source

Stop()

Deja de generar el evento Elapsed al establecer Enabled en false.

Declaration
public void Stop()

Implements

IComponent
ISupportInitialize
IDisposableEx
IDisposable

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX