SynchronizationContext.Wait(IntPtr[], Boolean, Int32) 메서드

정의

중요

이 API는 CLS 규격이 아닙니다.

CLS 대체 규격
System.Threading.WaitHandle.WaitAll(WaitHandle[], TimeSpan, Boolean)

지정된 배열의 임의 또는 모든 요소가 신호를 받기를 기다립니다.

public:
 virtual int Wait(cli::array <IntPtr> ^ waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
public virtual int Wait (IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public virtual int Wait (IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[<System.CLSCompliant(false)>]
abstract member Wait : nativeint[] * bool * int -> int
override this.Wait : nativeint[] * bool * int -> int
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
abstract member Wait : nativeint[] * bool * int -> int
override this.Wait : nativeint[] * bool * int -> int
Public Overridable Function Wait (waitHandles As IntPtr(), waitAll As Boolean, millisecondsTimeout As Integer) As Integer

매개 변수

waitHandles

IntPtr[]

nativeint[]

네이티브 운영 체제 핸들을 포함하는 IntPtr 유형의 배열입니다.

waitAll
Boolean

모든 핸들을 대기하려면 true이고, 임의 핸들을 대기하려면 false입니다.

millisecondsTimeout
Int32

대기할 시간(밀리초)이거나, 무기한 대기할 경우 Infinite(-1)입니다.

반환

대기를 만족한 개체의 배열 인덱스입니다.

특성

예외

waitHandles가 null입니다.

설명

메서드는 Wait 외부 선언 WaitHelper 을 호출하여 대기 작업을 수행합니다. 메서드를 재정의 Wait 하여 동기화 컨텍스트에 대한 대기 동작을 변경합니다.

적용 대상