All products / Saraff.Twain.DS / Contents
OnEndXfer
Invoked at the end of every transfer to signal that the application has received all the data it expected.
Syntax
protected virtual void OnEndXfer()
Remarks
When ICAP_XFERCOUNT is -1, the number of pending transfers is indeterminate and DAT_PENDINGXFERS keeps reporting 0xFFFF. Call EndOfXfers() when the Source has no more data for such a series. See EndOfXfers.
Examples
protected override void OnEndXfer() {
this._Dispose();
if(this.XferEnvironment.PendingXfersIndeterminate||this.XferEnvironment.PendingXfers>0) {
this._Acquire();
}
base.OnEndXfer();
}