CountdownEvent.Wait 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
설정될 때까지 현재 스레드를 CountdownEvent 차단합니다.
오버로드
| Name | Description |
|---|---|
| Wait() |
설정될 때까지 현재 스레드를 CountdownEvent 차단합니다. |
| Wait(Int32) |
32비트 부록 정수로 시간 제한을 측정하여 설정될 때까지 CountdownEvent 현재 스레드를 차단합니다. |
| Wait(CancellationToken) |
를 관찰하는 동안 설정될 때까지 CountdownEvent 현재 스레드를 차단합니다 CancellationToken. |
| Wait(TimeSpan) |
시간 제한을 측정하여 설정될 때까지 CountdownEvent 현재 스레드를 TimeSpan 차단합니다. |
| Wait(Int32, CancellationToken) |
가 설정될 때까지 CountdownEvent 현재 스레드를 차단하고, 32비트 부가 정수로 시간 제한을 측정하고 관찰합니다 CancellationToken. |
| Wait(TimeSpan, CancellationToken) |
를 관찰하는 동안 시간 제한을 측정하여 설정 CountdownEvent 될 때까지 TimeSpan 현재 스레드를 CancellationToken차단합니다. |
Wait()
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
설정될 때까지 현재 스레드를 CountdownEvent 차단합니다.
public:
void Wait();
public void Wait();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void Wait();
member this.Wait : unit -> unit
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : unit -> unit
Public Sub Wait ()
- 특성
예외
현재 인스턴스가 이미 삭제되었습니다.
설명
이 메서드의 호출자는 현재 인스턴스가 설정될 때까지 무기한 차단됩니다. 이벤트가 현재 설정된 상태인 경우 호출자가 즉시 반환됩니다.
추가 정보
적용 대상
Wait(Int32)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
32비트 부록 정수로 시간 제한을 측정하여 설정될 때까지 CountdownEvent 현재 스레드를 차단합니다.
public:
bool Wait(int millisecondsTimeout);
public bool Wait(int millisecondsTimeout);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool Wait(int millisecondsTimeout);
member this.Wait : int -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : int -> bool
Public Function Wait (millisecondsTimeout As Integer) As Boolean
매개 변수
반품
true 설정된 경우 , CountdownEvent 그렇지 않으면 false.입니다.
- 특성
예외
현재 인스턴스가 이미 삭제되었습니다.
millisecondsTimeout 는 무한 제한 시간을 나타내는 -1 이외의 음수입니다.
추가 정보
적용 대상
Wait(CancellationToken)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
를 관찰하는 동안 설정될 때까지 CountdownEvent 현재 스레드를 차단합니다 CancellationToken.
public:
void Wait(System::Threading::CancellationToken cancellationToken);
public void Wait(System.Threading.CancellationToken cancellationToken);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void Wait(System.Threading.CancellationToken cancellationToken);
member this.Wait : System.Threading.CancellationToken -> unit
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : System.Threading.CancellationToken -> unit
Public Sub Wait (cancellationToken As CancellationToken)
매개 변수
- cancellationToken
- CancellationToken
CancellationToken 관찰할 것입니다.
- 특성
예외
cancellationToken 가 취소되었습니다.
설명
이 메서드의 호출자는 현재 인스턴스가 설정될 때까지 무기한 차단됩니다. 이벤트가 현재 설정된 상태인 경우 호출자가 즉시 반환됩니다. CancellationToken 대기 작업 OperationCanceledException 중에 관찰되는 작업이 취소되면 throw됩니다.
추가 정보
적용 대상
Wait(TimeSpan)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
시간 제한을 측정하여 설정될 때까지 CountdownEvent 현재 스레드를 TimeSpan 차단합니다.
public:
bool Wait(TimeSpan timeout);
public bool Wait(TimeSpan timeout);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool Wait(TimeSpan timeout);
member this.Wait : TimeSpan -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : TimeSpan -> bool
Public Function Wait (timeout As TimeSpan) As Boolean
매개 변수
반품
true 설정된 경우 , CountdownEvent 그렇지 않으면 false.입니다.
- 특성
예외
현재 인스턴스가 이미 삭제되었습니다.
timeout 는 -1 밀리초 이외의 음수로, 제한 시간 제한이 Int32.MaxValue보다 큽니다.
추가 정보
적용 대상
Wait(Int32, CancellationToken)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
가 설정될 때까지 CountdownEvent 현재 스레드를 차단하고, 32비트 부가 정수로 시간 제한을 측정하고 관찰합니다 CancellationToken.
public:
bool Wait(int millisecondsTimeout, System::Threading::CancellationToken cancellationToken);
public bool Wait(int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool Wait(int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);
member this.Wait : int * System.Threading.CancellationToken -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : int * System.Threading.CancellationToken -> bool
Public Function Wait (millisecondsTimeout As Integer, cancellationToken As CancellationToken) As Boolean
매개 변수
- cancellationToken
- CancellationToken
CancellationToken 관찰할 것입니다.
반품
true 설정된 경우 , CountdownEvent 그렇지 않으면 false.입니다.
- 특성
예외
cancellationToken 가 취소되었습니다.
현재 인스턴스가 이미 삭제되었습니다. -또는- CancellationTokenSource 만든 cancellationToken 사용자가 이미 삭제되었습니다.
millisecondsTimeout 는 무한 제한 시간을 나타내는 -1 이외의 음수입니다.
추가 정보
적용 대상
Wait(TimeSpan, CancellationToken)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
를 관찰하는 동안 시간 제한을 측정하여 설정 CountdownEvent 될 때까지 TimeSpan 현재 스레드를 CancellationToken차단합니다.
public:
bool Wait(TimeSpan timeout, System::Threading::CancellationToken cancellationToken);
public bool Wait(TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool Wait(TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.Wait : TimeSpan * System.Threading.CancellationToken -> bool
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Wait : TimeSpan * System.Threading.CancellationToken -> bool
Public Function Wait (timeout As TimeSpan, cancellationToken As CancellationToken) As Boolean
매개 변수
- cancellationToken
- CancellationToken
CancellationToken 관찰할 것입니다.
반품
true 설정된 경우 , CountdownEvent 그렇지 않으면 false.입니다.
- 특성
예외
cancellationToken 가 취소되었습니다.
현재 인스턴스가 이미 삭제되었습니다. -또는- CancellationTokenSource 만든 cancellationToken 사용자가 이미 삭제되었습니다.
timeout 는 -1 밀리초 이외의 음수로, 제한 시간 제한이 Int32.MaxValue보다 큽니다.