ITargetBlock<TInput> 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
데이터의 대상인 데이터 흐름 블록을 나타냅니다.
generic <typename TInput>
public interface class ITargetBlock : System::Threading::Tasks::Dataflow::IDataflowBlock
public interface ITargetBlock<in TInput> : System.Threading.Tasks.Dataflow.IDataflowBlock
type ITargetBlock<'Input> = interface
interface IDataflowBlock
Public Interface ITargetBlock(Of In TInput)
Implements IDataflowBlock
형식 매개 변수
- TInput
에서 허용하는 데이터 형식을 ITargetBlock<TInput>지정합니다.
이 형식 매개 변수는 반공변(Contravariant)입니다. 즉, 지정한 형식이나 더 적게 파생된 모든 형식을 사용할 수 있습니다. 공변성(Covariance) 및 반공변성(Contravariance)에 대한 자세한 내용은 제네릭의 공변성(Covariance) 및 반공변성(Contravariance)을 참조하세요.- 파생
- 구현
속성
| 속성 | Description |
|---|---|
| Completion |
Task 데이터 흐름 블록의 비동기 작업 및 완료를 나타내는 값을 가져옵니다. (다음에서 상속됨 IDataflowBlock) |
메서드
| 속성 | Description |
|---|---|
| Complete() |
IDataflowBlock 더 이상 메시지를 수락하거나 생성하거나 더 이상 연기된 메시지를 사용하지 않아야 한다는 신호를 표시합니다. (다음에서 상속됨 IDataflowBlock) |
| Fault(Exception) |
IDataflowBlock 상태가 완료되도록 합니다Faulted. (다음에서 상속됨 IDataflowBlock) |
| OfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>, Boolean) |
대상에게 ITargetBlock<TInput>메시지를 사용하거나 연기할 수 있는 기회를 제공하는 메시지를 제공합니다. |
확장명 메서드
| 속성 | Description |
|---|---|
| AsObserver<TInput>(ITargetBlock<TInput>) |
에 대한 새 IObserver<T> 추상화 만들기 ITargetBlock<TInput> |
| Post<TInput>(ITargetBlock<TInput>, TInput) |
에 항목을 게시합니다 ITargetBlock<TInput>. |
| SendAsync<TInput>(ITargetBlock<TInput>, TInput, CancellationToken) |
대상 메시지 블록에 메시지를 비동기적으로 제공하여 연기할 수 있습니다. |
| SendAsync<TInput>(ITargetBlock<TInput>, TInput) |
대상 메시지 블록에 메시지를 비동기적으로 제공하여 연기할 수 있습니다. |