共用方式為


BufferBlock<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 先前且已成功由目標保留的實例。

適用於