Timeout.InfiniteTimeSpan Campo
Definição
public: static initonly TimeSpan InfiniteTimeSpan;
public static readonly TimeSpan InfiniteTimeSpan;
[System.Runtime.InteropServices.ComVisible(false)]
public static readonly TimeSpan InfiniteTimeSpan;
staticval mutable InfiniteTimeSpan : TimeSpan
[<System.Runtime.InteropServices.ComVisible(false)>]
staticval mutable InfiniteTimeSpan : TimeSpan
Public Shared ReadOnly InfiniteTimeSpan As TimeSpan
Valor do campo
- Atributos
Comentários
Para métodos de Threading que aceitam um timeout parâmetro do tipo TimeSpan , como Thread.Sleep(TimeSpan) e Thread.Join(TimeSpan) , esse valor é usado para suspender o thread indefinidamente.For threading methods that accept a timeout parameter of type TimeSpan, such as Thread.Sleep(TimeSpan) and Thread.Join(TimeSpan), this value is used to suspend the thread indefinitely. No entanto, na maioria dos casos, recomendamos que você use outras classes, como,, System.Threading Mutex Monitor EventWaitHandle ou Semaphore em vez disso, para sincronizar threads ou gerenciar recursos.However, in most cases, we recommend that you use other System.Threading classes, such as Mutex, Monitor, EventWaitHandle, or Semaphore instead, to synchronize threads or manage resources.
O valor desse campo é-00:00:00.0010000 ou-1 milissegundo.The value of this field is -00:00:00.0010000, or -1 millisecond.