TransformBlock<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 以前且已成功保留的目标实例。

适用于