WriteOnceBlock<T>.ISourceBlock<T>.ReleaseReservation 方法

定义

由链接的 ITargetBlock<TInput> 调用,以发布由此 DataflowMessageHeader 发布的以前已保留的 ISourceBlock<TOutput>

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

参数

messageHeader
DataflowMessageHeader

要发布的已保留消息的 DataflowMessageHeader

target
ITargetBlock<T>

发布之前保留的消息的 ITargetBlock<TInput>

实现

例外

messageHeader 无效。

targetnull

target未保留消息。

注解

只有 ITargetBlock<TInput> 链接到此 ISourceBlock<TOutput> 实例的实例可以使用 ReleaseReservation,并且它只能用于发布 DataflowMessageHeader 以前且目标成功保留的实例。

适用于