BufferBlock<T>.TryReceiveAll(IList<T>) 메서드

정의

IReceivableSourceBlock<TOutput>에서 모든 사용 가능한 항목을 비동기적으로 받으려고 시도합니다.

public:
 virtual bool TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<T> ^ % items);
public bool TryReceiveAll (out System.Collections.Generic.IList<T> items);
public bool TryReceiveAll (out System.Collections.Generic.IList<T>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of T)) As Boolean

매개 변수

items
IList<T>

소스에서 받은 항목입니다.

반환

Boolean

하나 이상의 항목을 받을 수 있으면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드는 원본이 항목을 제공할 때까지 대기하는 것을 차단하지 않습니다.

요소를 사용할 수 있는지 여부와 같은 요소를 확인한 후 반환됩니다.

적용 대상