BatchedJoinBlock<T1,T2>.ISourceBlock<Tuple<IList<T1>,IList<T2>>>.ConsumeMessage メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このDataflowMessageHeader インスタンスからISourceBlock<TOutput>によって識別されるメッセージの所有権をITargetBlock<TInput>に渡します。
virtual Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^ System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage(System::Threading::Tasks::Dataflow::DataflowMessageHeader messageHeader, System::Threading::Tasks::Dataflow::ITargetBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^> ^ target, [Runtime::InteropServices::Out] bool % messageConsumed) = System::Threading::Tasks::Dataflow::ISourceBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^>::ConsumeMessage;
Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>> ISourceBlock<Tuple<IList<T1>,IList<T2>>>.ConsumeMessage(System.Threading.Tasks.Dataflow.DataflowMessageHeader messageHeader, System.Threading.Tasks.Dataflow.ITargetBlock<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>> target, out bool messageConsumed);
abstract member System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>
override this.System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>
Function ConsumeMessage (messageHeader As DataflowMessageHeader, target As ITargetBlock(Of Tuple(Of IList(Of T1), IList(Of T2))), ByRef messageConsumed As Boolean) As Tuple(Of IList(Of T1), IList(Of T2)) Implements ISourceBlock(Of Tuple(Of IList(Of T1), IList(Of T2))).ConsumeMessage
パラメーター
- messageHeader
- DataflowMessageHeader
使用するメッセージの DataflowMessageHeader 。
- target
- ITargetBlock<Tuple<IList<T1>,IList<T2>>>
メッセージを使用する ITargetBlock<TInput> 。
- messageConsumed
- Boolean
true メッセージが正常に使用された場合は 。
false それ以外の場合。
返品
使用されたメッセージの値。 これは、以前に予約され、このメソッドにDataflowMessageHeaderとして渡されたものとは異なるmessageHeader インスタンスに対応している可能性があります。 使用するITargetBlock<TInput>は、messageValueにOfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>, Boolean)として渡される値ではなく、戻り値を使用する必要があります。 要求されたメッセージが使用できない場合、戻り値は null (Visual Basic の Nothing) です。
実装
例外
messageHeaderが無効です。
target は null です (Visual Basic では Nothing)。
注釈
メッセージを使用する ITargetBlock<TInput> は、この ISourceBlock<TOutput> インスタンスからリンクする必要はありません。 さらに、この ISourceBlock<TOutput> インスタンスは、メッセージを ITargetBlock<TInput>に直接提供したことがない可能性があります。