Timeout.InfiniteTimeSpan 필드

정의

TimeSpan 매개 변수를 받아들이는 메서드의 경우 무한 대기 기간을 지정하는 데 사용되는 상수입니다.

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 

필드 값

특성

설명

받아들이는 스레딩 메서드의 대 한는 timeout 형식의 매개 변수 TimeSpan와 같은 Thread.Sleep(TimeSpan)Thread.Join(TimeSpan),이 값은 스레드를 무기한으로 일시 중단을 사용 합니다. 그러나 대부분의 경우 스레드를 동기화하거나 리소스를 관리하기 위해 , , EventWaitHandleMonitor또는 Semaphore 과 같은 Mutex다른 System.Threading 클래스를 사용하는 것이 좋습니다.

이 필드의 값은-00:00:00.0010000, 또는-1 밀리초.

적용 대상