TXFAHostTransaction.Create

Unit: HPDFXFAHost

Declaration

constructor Create(Transport: TXFAHostTransport;
  Completed: TXFAHostTransactionCompleted;
  const Limits: TXFAHostTransportLimits;
  const Budget: IXFAStreamBranchBudget= nil);

class function CreateAdmitted(Transport: TXFAHostTransport;
  Completed: TXFAHostTransactionCompleted;
  const Limits: TXFAHostTransportLimits;
  const Budget: IXFAStreamBranchBudget): TXFAHostTransaction; static;

Behavior

Creates an empty transaction and validates positive limits; Transport may be nil until a script actually requests an external operation

Completed is an optional transaction outcome callback; the transaction retains the method references without owning their application object

Pass a Budget to charge the transaction instance and its entry list against a retained-memory family before either is allocated; CreateAdmitted states the same construction with a mandatory family, and a nil family in CreateAdmitted keeps the unmetered construction

Every charge is returned when the transaction is freed, including a transaction that is freed after a refusal or after its prefix read reserved scratch

Related APIs

Explicit XFA Host Transport, TXFAHostTransaction and Interactive Dynamic XFA Widget Runtime