共用方式為


TransformManyBlock<TInput,TOutput>.ISourceBlock<TOutput>.ReleaseReservation 方法

定義

由連結的ITargetBlock<TInput>呼叫以釋出先前由此 DataflowMessageHeader 保留的 ISourceBlock<TOutput>

 virtual void System.Threading.Tasks.Dataflow.ISourceBlock<TOutput>.ReleaseReservation(System::Threading::Tasks::Dataflow::DataflowMessageHeader messageHeader, System::Threading::Tasks::Dataflow::ITargetBlock<TOutput> ^ target) = System::Threading::Tasks::Dataflow::ISourceBlock<TOutput>::ReleaseReservation;
void ISourceBlock<TOutput>.ReleaseReservation (System.Threading.Tasks.Dataflow.DataflowMessageHeader messageHeader, System.Threading.Tasks.Dataflow.ITargetBlock<TOutput> target);
abstract member System.Threading.Tasks.Dataflow.ISourceBlock<TOutput>.ReleaseReservation : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<'Output> -> unit
override this.System.Threading.Tasks.Dataflow.ISourceBlock<TOutput>.ReleaseReservation : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<'Output> -> unit
Sub ReleaseReservation (messageHeader As DataflowMessageHeader, target As ITargetBlock(Of TOutput)) Implements ISourceBlock(Of TOutput).ReleaseReservation

參數

messageHeader
DataflowMessageHeader

釋放的保留訊息的 DataflowMessageHeader

target
ITargetBlock<TOutput>

ITargetBlock<TInput>,會釋放它先前保留的訊息。

實作

例外狀況

messageHeader 無效。

targetnull

target 沒有保留訊息。

備註

只有 ITargetBlock<TInput> 連結至這個 ISourceBlock<TOutput> 實例的實例可以使用 ReleaseReservation ,而且它只能用來釋放 DataflowMessageHeader 先前且已成功由目標保留的實例。

適用於